MySQL or PHP Trick to get most relevant results?

From: Date: Wed, 08 Nov 2000 23:23:42 +0000
Subject: MySQL or PHP Trick to get most relevant results?
Groups: php.general 
Request: Send a blank email to php-general+get-24401@lists.php.net to get a copy of this message
Hi, I am searching through a database with a text field... I would like, however, to match some things such: Database contains: lollypop Chocolate cake steak cake When i query for "steak" I should get "steak" returned. When i query for "chocolate" I should get "Chocolate cake" returned. When i query for "cake" I should get "cake" and "chocolate cake" returned (in that order). When i query for "lollypop" I should get "lollypop" returned. Is there any ideas of ways to do this? Thanks! Roy

« previous php.general (#24401) next »