// Which of the 2 would you prefer to use. list($foo_count) = mysql_fetch_row(mysql_query("select count(*) from table")); $foo_count = mysql_result(mysql_query("select count(*) from table"), 0);