View Single Post
  #4 (permalink)  
Old 19-01-2004, 04:56 PM
sufyan sufyan is offline
Senior Webmaster
 
Join Date: Oct 2001
Location: Melbourne, AU
Posts: 456
Rep Power: 97
sufyan is on a distinguished road
PHP Code:
$sql mysql_query("SELECT COUNT(Key) FROM table");
$rows mysql_result($sql$db);

//echo $rows; 
There isn't much difference between that example and the one earlier if your not running a large database.

The performance factor between the two methods is negligible for a small database.
Reply With Quote