View Single Post
Old 11-02-2015, 08:54 AM  
tical
Confirmed User
 
Join Date: Feb 2002
Location: Las Vegas
Posts: 6,504
That's because $fila['imagen1'] is empty in some instances.

It works when you place it in the "...php if(!empty..." block because that code would only run when $fila['imagen1'] is not empty.

If you place your display code before the "...foreach ($data->result_array() as $fila)..." then it won't work because $fila hasn't been created yet.
__________________
112.020.756
tical is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote