Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/03/2013, 15:56
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: Problema con arrays en consulta a BD

Simplemente agregalos a otro array como te dice @pateketrueke donde no tenga llaves el array ej:
Código PHP:
Ver original
  1. $new = array();
  2. foreach ($array as $item) {
  3.          $new[] = $item;
  4. }
  5.  
  6. echo json_encode($new);