Re: Search Script

From: Date: Thu, 25 Apr 2002 18:12:30 +0000
Subject: Re: Search Script
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-18812@lists.php.net to get a copy of this message
Hello, Jennifer Downey wrote:
Hi all, I have been trying to build a search script for my site that deals with only one table in my db. As Julie Meloni pointed out look in the MySQL manual for LIKE clauses I can't seem to locate that clause in ether manual. Dan Brunner gave me this to go on: $query = "SELECT uid, id, image, iname, quantity, type FROM {$config["prefix"]}_shop WHERE iname LIKE = '%$shopsearch% ORDER BY iname'"; $ret = mysql_query($query); while(list($quantity)=mysql_fetch_row($ret)) But I can't seem to get this to work. I have never worked with LIKE before and would appreciate any help on this.
Maybe you would like to see these classes that seem to do what you are looking for: http://www.phpclasses.org/search%20query Regards, Manuel Lemos

« previous php.db (#18812) next »