Ver original$consulta = mysql_query("SELECT COUNT(*) FROM tabla WHERE condicion");$total = mysql_result($consulta);