How, after telling 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 managed to do what I wanted to do this, but is this correct? Is there any better way?