Re: Invalid Argument ??? Not sure how to debug this

From: Date: Sun, 17 Mar 2002 20:22:40 +0000
Subject: Re: Invalid Argument ??? Not sure how to debug this
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88843@lists.php.net to get a copy of this message
On Sun, 17 Mar 2002, Daniel Negron/KBE wrote: > $sql= "SELECT * FROM cd_list WHERE $searchstring LIKE '%searchstring%' > ORDER BY artist ASC"; How about: SELECT * FROM cd_list WHERE searchstring LIKE '%{$searchstring}%' Then again, do you actually have a column called "searchstring" in your table? In any case, the way you had it didn't seem to make much sense unless you wanted to search a user-supplied column for a string that literally contained the string "searchstring". miguel

« previous php.general (#88843) next »