Whatever message this page gives is out now! Go check it out!
<html>
<head>
<title>Employee List</title>
</head>
<body>
<h1>Employee List</h1>
<cfquery name="EmpList" datasource="cfdocexamples">
SELECT FirstName, LastName, Salary, Contract
FROM Employee
</cfquery>
<cfoutput query="EmpList">
#EmpList.FirstName#, #EmpList.LastName#, #EmpList.Salary#, #EmpList.Contract#<br>
</cfoutput>
</body>
</html>Code | Description |
<cfoutput query="EmpList"> | Displays information retrieved in the EmpList query. |
#EmpList.FirstName#, #EmpList.LastName#,#EmpList.Salary#, #EmpList.Contract# | Displays the value of the FirstName, LastName, Salary, and Contract fields of each record, separated by commas and spaces. |
<br> | Inserts a line break (go to the next line) after each record. |
</cfoutput> | Ends the cfoutput block. |