Ver Mensaje Individual
  #20 (permalink)  
Antiguo 26/09/2012, 11:15
nataliagb1992
 
Fecha de Ingreso: septiembre-2012
Ubicación: Sevilla
Mensajes: 144
Antigüedad: 11 años, 7 meses
Puntos: 0
Respuesta: refrscar un formulario con ajax

sale el mism error:

<link rel='stylesheet' type='text/css' media='screen' href='cssPageGrid.css' />la variable es :123<br><tabla id='tabla'>
<tr>
<td id='td1'>Nombre del Producto|</td><td id='td1'>Descripción del Producto|</td><td id='td1'>Familia del Producto</td>
</tr> <tr>
Warning: Invalid argument supplied for foreach() in /var/www/routercfg/ajax.php on line 21
</tr></table>

codigo cambiado :
Código PHP:
Ver original
  1. foreach($query as $row){
  2.     echo "<td>";
  3.     echo $row[0]['nombre'];
  4.     echo "</td><td>";
  5.     echo $row[1]['descripcion'];
  6.     echo "</td><td>";
  7.     echo $row[2]['familia'];
  8. }