3
As if, after counting how many records I have in a database, how do I put the value inside a PHP variable:
$sql = mysql_query("SELECT COUNT(*) FROM `users`");
$row = mysql_fetch_array($sql);
$total = $row['COUNT(*)'];
I was able to do what I wanted, but is this correct to do? Is there any better way?