![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
07/03/2011, 10:50
|
![Avatar de GatorV](http://static.forosdelweb.com/customavatars/avatar138775_9.gif) | $this->role('moderador'); | | Fecha de Ingreso: mayo-2006 Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años, 8 meses Puntos: 2135 | |
Respuesta: no imprime count(*) De hecho estas mal jotaincubus eso siempre te va a imprimir 1, debe de hacer algo así:
Código PHP:
Ver original$query = "SELECT COUNT(*) AS 'total' FROM ..."; $total = $totalRst['total'];
Saludos. |