Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/08/2011, 07:37
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: Crear array en controlador

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.