Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/10/2007, 19:04
Avatar de davincci
davincci
 
Fecha de Ingreso: enero-2005
Mensajes: 193
Antigüedad: 19 años, 3 meses
Puntos: 0
Re: Mostrar articulos

Hola carmagedon agradezco mucho por tu interes en ayudarme.

esta es la pagina inicial que tengo, hasta ahi no hay problema por que hago un reporte y me muestra todo lo que tengo en la tabla de datos, pero el resultado que se espera es este:





Código PHP:
<html>
<head>
<title>Reporte de Productos</title>
<style type="text/css">
<!--
.Estilo4 {font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; font-weight: bold; }
.Estilo5 {color: #000000; font-weight: bold; }
-->
</style>
</head>
<body>

<table align="center">
<tr>
<td bgcolor="#00FFCC"><div align="center"><strong>Imagen</strong></div></td>
<td bgcolor="#00FFCC"><div align="center"><strong>Categoria</strong></div></td>
<td bgcolor="#00FFCC"><div align="center"><strong>Producto</strong></div></td>
<td bgcolor="#00FFCC"><div align="center"><strong>Descripci&oacute;n</strong></div></td>
</tr>
<?php
include ("conexion.php"); 
$tabla mysql_query('SELECT * FROM productos');
while (
$registro mysql_fetch_array($tabla)) 

?>
<tr>
<td bgcolor="#99FFFF"><img src="img/<?php echo $registro['imagen']; ?>" width="100"></td>
<td bgcolor="#99FFFF"><?php echo $registro['nombre']; ?></td>
<td bgcolor="#99FFFF"><?php echo $registro['descripcion']; ?></td>
<td bgcolor="#99FFFF"><strong>$</strong><?php echo $registro['valor']; ?></td>
</tr>
<?php
}
mysql_free_result($tabla);
mysql_close($conexion);
?>
</table>
<p>&nbsp;</p>
</body>
</html>

Gracias por tu colaboracion, de verdad que la necesito.