Código PHP:
<html>
<head>
<title>Reporte de Productos</title>
</head>
<body>
<?php
include ("conexion.php");
$resultado = mysql_query('SELECT * FROM productos');
$i=0;
while($pdesign = mysql_fetch_array($resultado)) {
if ($i==0) {
?>
<tr>
<?php
}
?>
<td width="172" bordercolor="#90B36F"><div align="center"><?php echo $pdesign["nombre"]; ?><br><img src="img/<?php echo $pdesign['imagen']; ?>"></div></td>
<?php
$i++;
if ($i==3) {
?>
</tr>
<?php
$i=0;
}
}
mysql_free_result($resultado);
mysql_close($conexion);
?>
</body>
</html>
La tabla donde están los datos es esta:
***********************************
id int(11) No auto_increment
idcategoria int(11) No
nombre varchar(255) utf8_general_ci No
descripcion text utf8_general_ci Sí NULL
valor decimal(10,0) No
imagen varchar(50) utf8_general_ci No
mas varchar(20) utf8_general_ci No
flechas varchar(20) utf8_general_ci No
fecha
***********************************
Espero que me puedan colaborar pues llevo dos dias enteros y nada que me da.
Saludos