Re: NMax
| From: | David Schlotfeldt | Date: | Sun, 07 Nov 2004 05:19:14 +0000 |
| Subject: | Re: NMax | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201396@lists.php.net to get a copy of this message | ||
You could do it in a SQL statement
SELECT COUNT(*) FROM table_name;
This is less system intensive.
David
John Taylor-Johnston wrote:
I might add, I do this, think there must be a better way? $mycounter = 0; while ($mydata = mysql_fetch_object($news)) { $mycounter++; } John Taylor-Johnston wrote:How can I calculate how many records I have in a table? John