Re: Search Algorithm, where to find a simple one?

From: Date: Mon, 16 Oct 2000 23:20:19 +0000
Subject: Re: Search Algorithm, where to find a simple one?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-20479@lists.php.net to get a copy of this message
Hey Maxim > I need to search few MySQL tables, and I need a simple search algorithm, not > a search engine in person. > > Few Simple Tasks: search by field, AND, OR (some others if there are) > features. Your question is completely vague. Anyway, the best way to find matching records is writing a good SQL query that will return only the matching records. Then, you use PHP to do something with those matched records. By the way, if you want to loop through the results of a MySQL query, the handiest function is a while loop on mysql_fetch_array(). --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.general (#20479) next »