Re: counting records in db
| From: | afan at afan dot net | Date: | Thu, 26 Oct 2006 17:41:27 +0000 |
| Subject: | Re: counting records in db | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243688@lists.php.net to get a copy of this message | ||
WOW! That was fast!
:D
Thanks Dave!
-afan
> $query = mysql_query("
> SELECT COUNT(*) as NoOfRecords
> FROM customers
> WHERE last_name = 'Smith'");
> $result = mysql_result($query, 0);
>