Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/02/2011, 12:31
turfeano
 
Fecha de Ingreso: diciembre-2008
Mensajes: 190
Antigüedad: 16 años, 2 meses
Puntos: 6
Respuesta: php y base de datos mostrar fotos en una tabla

Algo asi
Código PHP:
<table>
<?php
$r
mysql_query("select img,fecha from tabla");
$cont=1;
while (
$row mysql_fetch_array($r)){
    if ((
$cont &#37; 5)==0 or ($cont==1)) 
       
echo '<tr>';

       echo 
'<td> <img src='$row['img']' />  $row['fecha'] </td>';
    
    if ((
$cont 5)==
       echo 
'</tr>';
   
$cont++;

}
?>
</table>