Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/04/2010, 12:38
rpv
 
Fecha de Ingreso: febrero-2010
Mensajes: 275
Antigüedad: 15 años
Puntos: 10
Respuesta: Problema con array

es que colocas solo un fragmento del código, ahora mismo podría decirte dos cosas:

en el fragmento de código falta un paréntesis:


Código PHP:
Ver original
  1. 'LEFT_JOIN' => array(
  2.         array(
  3.             'FROM'    => array(ZEBRA_TABLE => 'z'),
  4.             'ON'    => 'z.user_id = ' . $user->data['user_id'] . ' AND z.zebra_id = p.poster_id'
  5.         )
  6.  
  7.         , array(
  8.             'FROM'    => array(POINTS_BANK_TABLE => 'pb'),
  9.             'ON'    => 'pb.user_id = p.poster_id'
  10.        )
  11.     )

y pues todo eso debería ir dentro de un array:


Código PHP:
Ver original
  1. $variable=array(
  2. 'LEFT_JOIN' => array(
  3.         array(
  4.             'FROM'    => array(ZEBRA_TABLE => 'z'),
  5.             'ON'    => 'z.user_id = ' . $user->data['user_id'] . ' AND z.zebra_id = p.poster_id'
  6.         )
  7.  
  8.         , array(
  9.             'FROM'    => array(POINTS_BANK_TABLE => 'pb'),
  10.             'ON'    => 'pb.user_id = p.poster_id'
  11.        )
  12.     )
  13. )