Here is a way you can do this: (remember that the only part you really need is this part:
while ($row = mysql_fetch_array($result)) {
echo "Total Number of Rows: ".$row[0];
}
Here is the whole snippet:
<?
$db = mysql_connect("localhost", "your_user", "your_pass") or die("mysql_connect() failed");
mysql_select_db("your_database") or die("mysql_select() failed");
$query = "select count(*) from currentgames";
$result = mysql_query($query) or die(mysql_error());
while ($row = mysql_fetch_array($result)) {
echo "Total Number of Rows: ".$row[0];
}
?>
Hope it helps.