On Apr 23, 2004, at 8:32 AM, John W. Holmes wrote:
From: "Brian Dunning" <[EMAIL PROTECTED]>- Brian
I STFW and RTFM and I still can't figure out why this returns a 1064 parse error:
SELECT * FROM 'my_table' WHERE ('field_1' LIKE '%$keyword%' OR 'field_2' LIKE '%$keyword%' OR 'field_3' LIKE '%$keyword%') AND 'status' = 'active';
Use backticks around table and column names, not single quotes.
---John Holmes...
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php