![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
20/05/2006, 18:19
|
| | Fecha de Ingreso: noviembre-2004
Mensajes: 8
Antigüedad: 20 años, 2 meses Puntos: 0 | |
Bueno pues resulta que yo estoy intentando hacer algo parecido y ya me estoy aclarando te paso el codigo para que por ej. muestre todo lo que tiene la base de datos, creando un array parte por parte, encerrando cada dato en una tabla
si no te aclaras dime y vere si encuentro algo mas sencillo
<html>
<head><title>:::...Mi Ejemplo J.A...:::</title></head>
<body>
<?php
$link = mysql_connect("localhost","root","password");
mysql_select_db("bdatos",$link);
$result = mysql_query("SELECT * FROM tablax",$link);
echo '
<table border=1 align=center height = 140>
<tr><td><center>Código</td><td><center>Tinta</td><td><center>Compatibilidad</td><td><center>Fabricante</td><td><center>Stock</td></tr></center><tr>
';
while($row = mysql_fetch_array($result)) {
echo "<td width=30>".$row['codigo']."</td><td width = 180>".$row['tinta']."</td><td width = 600>".$row['comentario']."</td><td width = 80>".$row['fabricante']."</td><td width = 40>".$row['existencias']."<br></tr>";
}
?>
</table>
</body>
</html> |