
08/06/2011, 15:07
|
 | | | Fecha de Ingreso: noviembre-2007 Ubicación: Cali-Colombia
Mensajes: 1.869
Antigüedad: 17 años, 3 meses Puntos: 75 | |
Respuesta: Tabla PHP desde MySQL <table>
<tr>
<td>nombre <input type="text" name="nombre" id="nombre" /></td>
<td>
<select >
<option value="1">valon</option>
<option value="2">carro</option>
<option value="3">muñeca</option>
<option value="4">trompo</option>
</select>
</td>
</tr>
<?php
te conectas a la bd
$sql= "select los campos from tabla"
while($row = mysql_fetch_Array())
{
?>
<tr>
<td><?php echo $row[campo]; ?></td>
<td><?php echo $row[campo]; ?></td>
<td><?php echo $row[campo]; ?></td>
<td><?php echo $row[campo]; ?></td>
<td><?php echo $row[campo]; ?></td>
</tr>
<?php
}
?>
</table>
Quizá esto te pueda ayudar mejor, es el mismo de iviamontes sólo cambié algunas cosas
__________________ Cabuntu.org - Difundiendo Software Libre en Cali, Colombia
Usuario Linux # 483175 |