Ver Mensaje Individual
  #5 (permalink)  
Antiguo 27/10/2008, 05:03
juanpergon
 
Fecha de Ingreso: mayo-2008
Mensajes: 12
Antigüedad: 16 años
Puntos: 0
Respuesta: Ayuda por favor con el tema de las imagenes

Las imagenes se encuentran en la misma carpeta.

<html>

<head>
<title>REFERENCIA</title>
</head>

<body>
<?php
//CONEXIÓN CON LA BASE DE DATOS
$bd=mysql_connect("","","") or die ("PROBLEMAS EN LA CONEXIÓN CON LA BASE DE DATOS");
mysql_select_db("juanpergon");
$sql="select referencia,titulo,autor from productos ORDER BY fecha";
$result=mysql_query($sql,$bd) or die (mysql_error());
?>
<table border="1" align="center" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="600" id="AutoNumber1" height="116">
<tr>
<td width="104" align="center" bgcolor="#C0C0C0" height="19"><b>REFERENCIA</b></td>
<td width="70" align="center" bgcolor="#C0C0C0" height="19"><b>TITULO</b></td>
<td width="110" align="center" bgcolor="#C0C0C0" height="19"><b>AUTOR/A</b></td>
<td width="110" align="center" bgcolor="#C0C0C0" height="19"><b>IMAGEN/A</b></td>
</tr>
<?
while($row=mysql_fetch_array($result))
{
echo '<tr><td align="center">'.$row["referencia"].'</td>';
echo '<td with="100%" align="center" style="font-family: Arial; font-size: 8px" >'.$row["titulo"].'</td>';
echo '<td with="100%" align="center" >'.$row["autor"].'</td>';
echo "<td with=\"100%\" align=\"center\"><img src=".$row[foto1]."></td>";
}
mysql_free_result($result)
?>
</table>
</body>
</html>