RE: [PHP] Count in PHP
| From: | Martin Towell | Date: | Tue, 10 Sep 2002 04:54:58 +0000 |
| Subject: | RE: [PHP] Count in PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-115821@lists.php.net to get a copy of this message | ||
it's best done in sql using "select count(*)"
but can be done in php by looping through the result set
-----Original Message-----
From: Chuck "PUP" Payne [mailto:cepayne@magidesign.com]
Sent: Tuesday, September 10, 2002 2:58 PM
To: PHP General
Subject: [PHP] Count in PHP
I am wanting to do a count in PHP. I want to be able to count the number of
records from a given database and display this count on the page. Can this
be done using PHP or is the sql thing?
Chuck Payne
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php