345reads

mySql & Coldfusion: WHERE LIKE not workingview story

I have a select in a result page the WHERE LIKE isn't working? This is the query I have: CFM Code: <cfquery name="getProducts" datasource="#application.dsn">     SELECT p.product_id, p.artist, p.title, p.publisher, p.release_date, p.condition, p.price, p.category_id, c.category, p.genre_id, g.genre     FROM products p     LEFT JOIN categories c ON p.category_id = c.category_id     LEFT JOIN genres g ON p.genre_id = g.genre_id    WHERE (artist LIKE '%#Form.txtSearch#%'     OR title LIKE '%#Form.txtSearch#%'

The content of this field is kept private and will not be shown publicly.
To prevent automated spam submissions leave this field empty.
CAPTCHA
Human?
Image CAPTCHA
Enter the characters shown in the image.