Ver Mensaje Individual
  #13 (permalink)  
Antiguo 03/05/2008, 15:29
reimonfranco
 
Fecha de Ingreso: febrero-2006
Mensajes: 858
Antigüedad: 18 años, 2 meses
Puntos: 4
Re: Que muestre 2 fotos por columnas

Cita:
Iniciado por .php Ver Mensaje
jajajajaj, lo hice
el problema, es q le falto un else
este codigo te sirvira
Código PHP:
while ($row mysql_fetch_array($resultado)) {
$id $row["id"];
  if(
$id <> $idAux and $idAux!=""){
    echo 

      <tr>
        <TD width='283' height='158' ALIGN='CENTER' valign='top'><img src='ver.php?id=$id' width='182' height='154'></TD>
        <TD width='283' height='158' ALIGN='CENTER' valign='top'><img src='ver.php?id=$idAux' width='182' height='154'></TD>
      </tr>"
;
    unset(
$idAux);
  }else{
      
$idAux $id;
  }
}
echo 
"</table>"
Que tal,
probe este script ,, (jaja que quien sabe porque no lo habia probado ) y me di cuenta que si funcionaa !!!

gracias!!

Peroo... jaja hay un problemita...
Tengo 6 imagenes, perfecto me muestra dos en cada columna..
Pero cuando tengos imagenes impares, por ejemplo 5..
las primeras 4 las muestra y la ultima si no ...
no se por que hace eso ..

saludos y gracias
__________________
*La amistad se multiplica cuando se divide*