Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/06/2010, 13:02
Avatar de wiwi74
wiwi74
 
Fecha de Ingreso: marzo-2008
Mensajes: 515
Antigüedad: 17 años
Puntos: 10
Respuesta: ¿Me ayudan a mejorar este script PHP?

Hola, un pequeño aporte:

Código PHP:

//reemplaza tu foreach por este
//o agregale lo que le agregue, si lo distingues

foreach($files as $file)  
{  
list(
$w,$h)=getimagesize($images.$file);

  if((
$colCtr%$cols) == 0)  
    
echo '</tr><tr><td colspan="2"><hr /></td></tr><tr>';
    echo 
'<td align="center"><a href="' $images $big $file '">
          <img src="' 
$images $file '" width="'.($w/4).'" height="'.($h/4).'" /></a></td>';  
  
  
$colCtr++;  

Si tengo la voluntad suficiente, hago el contador para paginar

Saludos...!

Última edición por wiwi74; 13/06/2010 a las 14:17