Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/08/2007, 14:31
AlvaroG
Invitado
 
Mensajes: n/a
Puntos:
Re: como obtener total de filas?

y por qué no lo hacés así?

$consulta = "SELECT Count(ID) FROM noticias";
$resultado = mysql_query($consulta);
list($cantidad) = mysql_fetch_row($resultado);

En $cantidad tenés la cantidad que te devuelve COUNT.


Saludos.