Ver Mensaje Individual
  #5 (permalink)  
Antiguo 28/04/2008, 18:12
Avatar de .php
.php
 
Fecha de Ingreso: julio-2006
Mensajes: 481
Antigüedad: 17 años, 9 meses
Puntos: 5
Re: Que muestre 2 fotos por columnas

mira lo hice sin probar el codigo, pero mira que se pare la imagenes

imagen_id - imagen_idAux -> 1º ciclo
imagen_id - imagen_idAux -> 2º ciclio
imagen_id - imagen_idAux -> 3º ciclo

en el 2º ciclo la Aux sige con el id, entonces no deberia mostrar ese ciclo, el problema esta en la condicon me parese, por ultimo cambialo por un $sw tue y false

Código PHP:
echo "<table>";
$sw    false;
while (
$row mysql_fetch_array($resultado)) {
$id $row["id"];
  if(
$sw true){
    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>"
;
    
$sw  =  false;
  }else{
    
$sw  =  true;
    
$idAux  =  $id;
  }
}
echo 
"</table>"
espero que sea eso, prueba-error, pero por ahi esta la solucion (no fue tan facil como crei :D)
__________________
~~[FiDeLio]~~