Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/05/2003, 03:24
Avatar de Helbira
Helbira
 
Fecha de Ingreso: octubre-2001
Ubicación: Sevilla, España
Mensajes: 1.228
Antigüedad: 22 años, 5 meses
Puntos: 5
No sé para que utilizas la variable $i.

Yo haría algo así:
Código PHP:
<?
$urlfoto
="imagenes/computadores/";// ruta de mis fotos
?>
<table width="40%" border="1" cellspacing=1 cellpadding=1>
<tr>
<td width="75%">DESCRIPCION</td>
<td width="75%">IMAGENES</td>
</tr>

<?
while ($fila=mysql_fetch_array($res))
{
?>
<tr>
<td width="75%"><?echo $fila["descripcion"];?></td>
<td width="75%"><img src="<?echo $urlfoto.$fila["imagen"]?>"></td>
</tr>
<?
}
?>
</table>
Fíjate también en que no pongo la "/" antes de imprimir la variable $urlfoto en el src de la etiqueta <img>

Un beso