Re: NMax

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux