RE: [PHP] Finding a MySQL record in PHP4.0
| From: | Emile Axelrad | Date: | Sat, 01 Jul 2000 16:03:06 +0000 |
| Subject: | RE: [PHP] Finding a MySQL record in PHP4.0 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4261@lists.php.net to get a copy of this message | ||
>
> Dear Sir/Madam
>
> I want to know if there is function in php4 for finding a
> specific record in the result of a query. I do not want to use a
> loop to find the record.
>
> Thanks.
You need to put the 'find' string you want into the MySQL query...e.g. if
you wanted to find Microsoft from your table of businesses...
SELECT * FROM businesses WHERE Name='Microsmurf' AND CashValue > 10000000
hope this helps. There is no [afaik] way of doing it manually in PHP. But
then you don't need to - more efficient to do it this way.
- Emile Axelrad