
17/04/2009, 07:23
|
 | | | Fecha de Ingreso: abril-2009 Ubicación: localhost
Mensajes: 629
Antigüedad: 15 años, 10 meses Puntos: 19 | |
Respuesta: Imagenes salen en Columna Cita:
Iniciado por samyb8 Código PHP: $consulta = mysql_query("SELECT * FROM fotos WHERE size=1 LIMIT 3");
echo "<table width='600' border='0'>";
echo "<tr>";
$i=1;
while($fila = mysql_fetch_array($consulta)){
$consulta2 = mysql_query("SELECT * FROM fotos WHERE size=0 AND Album='".$fila[Album]."' ORDER BY idFoto ASC");
$fila2 = mysql_fetch_array($consulta2);
echo "<td>"."<a href='fotos.php?idFoto=$fila2[idFoto]'><img src=\"../Fotos/"."$fila[RutaAlbum]"."/"."$fila[Foto]\" BORDER=1 WIDTH=130 HEIGHT=86></a>";
echo "<br/><font face=Arial color=#000000 size=2><b>".utf8_encode($fila[Album])."</b></td>";
if($i%2 == 0) {
echo ' </td>';
echo ' <td>';
}
$i++;
}
echo " </tr>";
echo "</table>";
prueba asi |