Ver Mensaje Individual
  #7 (permalink)  
Antiguo 17/04/2003, 17:39
Avatar de vampira
vampira
 
Fecha de Ingreso: noviembre-2002
Mensajes: 247
Antigüedad: 21 años, 5 meses
Puntos: 0
gracias x las sugerencias...
y si kisiera ordenarlos x fecha descendente seria lo mismo?, tendria ke leer la fecha de modificiacion y luego crear el array y ordenarlo??

este es mi codigo... lee los archvos de un directorio thumbs y los muestra como imagenes...

Código PHP:
  <table width="54%" border="1" bordercolor="#FFFFFF" align="center">
 <? $path="galeria/thumbs";
  
$dir_handle = @opendir($path) or die("Unable to open $path");

  
$i=0;
 
  while (
$file readdir($dir_handle)) {
    if (
$file != "." && $file != "..") { 
     
$i++;
     if (((
$i%7)== 0) || (i==1)) 
      { echo 
"<tr>";  }   ?>
      <td width="23%" OnMouseOver="this.style.backgroundColor='#990000'" OnMouseOut="this.style.backgroundColor='#DBE7F3'"> 
      <a href="javascript:NewWindow=window.open('galeria/ver_foto.php?foto=<?=$file?>&texto=Patricia Villarreal 400m libres','AppWin','width=656,height=450,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0'); NewWindow.focus();"> 
      <img src="galeria/thumbs/<?=$file?>" width="59" height="59" alt="<?=$file?>" border="0"></a></td>
    <? if (($i%6)== 0
      { echo 
"</tr>";  }
      } 
// if   
   
// while               
  
  //closing the directory
  
closedir($dir_handle);
  
?>
  </table>