Ver Mensaje Individual
  #3 (permalink)  
Antiguo 19/03/2009, 14:29
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: Array - consulta

Mmm creo que quiere algo así:
Código php:
Ver original
  1. $asociaciones = array();
  2. $seleccionComentarios = mysql_query("SELECT contenido,autor,fecha,hora,tiempo FROM comentarios  WHERE imagen = '$imagen' ORDER BY tiempo DESC");
  3. while( $asociacion = mysql_fetch_array($seleccionComentarios) ) {
  4.         $asociaciones[] = $asociacion;
  5. }
  6.  
  7. var_dump($asociaciones);