SQL to get count of records

This is for MySQL I have no idea about other DBs



$query = mysql_query("SELECT count(*) FROM accounts");
$ctr = mysql_result($query,0,0);


Hope it helps someone.

0 comments



Some Links (off programming)