Re: OK SQL experts...

From: Date: Fri, 23 Apr 2004 17:39:27 +0000
Subject: Re: OK SQL experts...
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-184444@lists.php.net to get a copy of this message
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''my_table' WHERE ('field_1' LIKE '%%' OR 'field2'
Because you are using a single quotes around your table/field names. Remove them or use ` (back tick). As suggested earlier.
NOW IT WORKS!! I thought I had tried back ticks and nothing - I did try it, must have made a typo. But all is well now. THANKS VERY MUCH!!!! - B1ff Lamer

« previous php.general (#184444) next »