<CFQUERY NAME="EmployeeList" DATASOURCE="CF 3.0 Examples"> |
SELECT * FROM Employees WHERE LastName LIKE '%#LastName#%' |
AND Department = '#Department#' |
</CFQUERY> |
<HTML> |
<HEAD><TITLE>Employee Search Results</TITLE></HEAD> |
<H2>Organization Search Results</h2> |
<CFOUTPUT> |
<P>The Search for #Form.LastName# in the #Form.Department# returned these results:</P> |
</CFOUTPUT> |
<CFOUTPUT QUERY="EmployeeList"> |
<HR>#FirstName# #LastName# (Phone: #Phone#) <BR> |
</CFOUTPUT> |
</HTML> |