I am trying to build a dynamic sql statement with this line
<cfset SQL = "SELECT url, MONTH(event_date) AS months, YEAR(event_date) AS year, event_date, title from events where title LIKE '%#form.event_name#%' ">
<cfquery name="results" >
#SQL#
</cfquery>
Seems there is a problem with the like clause. Any ideas? Do I need to escape the %?
Thanks