I NEED TO DO A QUERY IN WHICH I HAVE TO DO ONE SEARCH BY TWO DIFFERENT FIELD FIRST NAME OR LAST NAME. HERE IS THE QUERY.
<cfquery name="con" datasource="ltw" dbtype="ODBC">
SELECT FIRST, LAST, FAXPHONE
FROM CUSTOMER
WHERE FIRST LIKE '%#FIRST#%'OR LAST LIKE '%#LIKE#%'
</cfquery>
I NEEDED IF I WANT TO DO SEARCH ON LAST NAME INSTEAD OF FIRST THE RESULT STILL DISPLAYS.
<cfquery name="con" datasource="ltw" dbtype="ODBC">
SELECT FIRST, LAST, FAXPHONE
FROM CUSTOMER
WHERE FIRST LIKE '%#FIRST#%'OR LAST LIKE '%#LIKE#%'
</cfquery>
I NEEDED IF I WANT TO DO SEARCH ON LAST NAME INSTEAD OF FIRST THE RESULT STILL DISPLAYS.