RE: [PHP] run query
| From: | Jon Haworth | Date: | Tue, 10 Dec 2002 16:05:03 +0000 |
| Subject: | RE: [PHP] run query | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-127662@lists.php.net to get a copy of this message | ||
Hi Diana,
> After I run a query lik this,
> $db->query($sql);
>
> what is the quickest way to find out how many
> records result?
Look into mysql_num_rows (or the equivalent if you're not using MySQL)
Cheers
Jon