RE: [PHP] finding a particular record within a MySQL result set
| From: | Jim Moseby | Date: | Wed, 04 Apr 2007 17:39:39 +0000 |
| Subject: | RE: [PHP] finding a particular record within a MySQL result set | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-252061@lists.php.net to get a copy of this message | ||
>
> You will probably get a better approach from the mysql list,
> but from a PHP
> solution perspective, I'd load up an array with the result
> set and use key()
> to get the number.
>
> The example at http://php.net/key does exactly that.
>
Or array_search() :)
JM