![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
06/08/2007, 14:31
|
|
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. |