Ver Mensaje Individual
  #6 (permalink)  
Antiguo 07/03/2011, 10:50
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 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
  1. $query = "SELECT COUNT(*) AS 'total' FROM ...";
  2. $result = mysql_query($query) or die(mysql_error());
  3. $totalRst = mysql_fetch_array($result);
  4. $total = $totalRst['total'];

Saludos.