Try this. 🙂
<?
$query = "SELECT COUNT(*) AS numrows FROM users";
$numha = mysql_query($query) or die("Select Failed!");
$numha = mysql_fetch_array($numha);
if ($numha == 0) {
echo "Error:" . mysql_error();
exit();
}
?>
Place this where you want the query displayed:
There are <?= $numha[0]; ?> users in my database.