Answered
Wierd SQL happening
I'm using the following SQL statement
<cfquery name="rscustomer" datasource="rayannesql">
SELECT firstname, lastname, address
FROM dbo.customer
WHERE lastname = '%#FORM.lastname#%'
Order By firstname
</cfquery>
when I type in a last name value, I know exists in the database into a search box, I get a blank page back.
I don't understand why. I tried removing the WHERE clause and get all results back from the database
<cfquery name="rscustomer" datasource="rayannesql">
SELECT firstname, lastname, address
FROM dbo.customer
WHERE lastname = '%#FORM.lastname#%'
Order By firstname
</cfquery>
when I type in a last name value, I know exists in the database into a search box, I get a blank page back.
I don't understand why. I tried removing the WHERE clause and get all results back from the database