Ver Mensaje Individual
  #11 (permalink)  
Antiguo 05/11/2009, 20:23
Avatar de zaetoner
zaetoner
 
Fecha de Ingreso: noviembre-2007
Ubicación: La ciudad de México
Mensajes: 607
Antigüedad: 16 años, 5 meses
Puntos: 30
Respuesta: problema con while y foreach

$result = mysql_query("SELECT * FROM descprod");
echo '<table width="600" border="1" cellspacing="2" cellpadding="2" align="center">';
while($row=mysql_fetch_array($result)) {
echo '<tr>';
foreach ($rows as $col) {
echo '<td>';
echo '<div align="center">'.$col.'</div>';
echo '</td>';
}
echo '</tr>';

}

echo '</table>';
__________________
...