
05/11/2009, 20:23
|
 | | | Fecha de Ingreso: noviembre-2007 Ubicación: La ciudad de México
Mensajes: 607
Antigüedad: 17 años, 3 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>';
__________________ ... |