Ver Mensaje Individual
  #6 (permalink)  
Antiguo 12/05/2009, 13:54
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Contar comentarios de una noticia

Prueba esto:
Código php:
Ver original
  1. $num_comments = array();
  2. while( $row = mysql_fetch_assoc( $res ) ) {
  3.     $num_comments[] = $row;
  4. }
  5. var_dump($num_comments);

Saludos.