I'm trying to have a command count the total of entries that are in a database. What is the command?
<?
$result = mysql_query("SELECT Count('id') AS nTotal FROM news ORDER BY id DESC",$db);
while ($myrow = mysql_fetch_row($result)) {
echo "$nTotal";
}
?>
This is not working can someone help me with the coding?