Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/08/2011, 01:55
Avatar de Gambinoh
Gambinoh
 
Fecha de Ingreso: diciembre-2010
Mensajes: 348
Antigüedad: 13 años, 4 meses
Puntos: 11
Respuesta: Crear array en controlador

Cita:
Iniciado por GatorV Ver Mensaje
Puedes usar algo así:
Código PHP:
Ver original
  1. $valores = array();
  2. foreach ($fila = mysql_fetch_array($result)) {
  3.        $valores[] = ucfirst($fila['campo_x']);
  4. }
  5.  
  6. var_dump($valores);

Saludos.
Ops, pensé que había respondido.

Todo ok, me sirvió tu respuesta (cambiando foreach por while...).