Ver Mensaje Individual
  #8 (permalink)  
Antiguo 28/02/2010, 11:23
Garrisonx
 
Fecha de Ingreso: febrero-2010
Mensajes: 17
Antigüedad: 14 años, 2 meses
Puntos: 0
Respuesta: Error imprimiendoen 2 columnas

por ejemplo asi ve
funciona y trae todas las fotos bien pero me imprime un registro menos
aqui te dejo una foto
http://www.subirimagenes.com/fotos-resultados-4138546.html

Código PHP:
<?php echo "Se encontraron "$totalRows_Recordset1." coincidencias <br />" ?>
  <br />
  <?php 
$numValores 
$totalRows_Recordset1;
$va 1;
$a=1;
?>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<?php while($row_Recordset1 mysql_fetch_array($Recordset1)){
    if(
$va ==) { ?>
  <tr>
    <td>
    <table width="265" border="0">
  <tr>
    <td width="80" height="80" rowspan="5"><a rel="popuppopup[450,300]" href="upload/fotos/<?php echo $row_Recordset1['id_mobiliario']; ?>.jpg"><img src="upload/fotos/<?php echo $row_Recordset1['id_mobiliario']; ?>_t.jpg" /></a></td>
    </tr>
    </table>
    
    <?php echo $a$va++; ?></td>
    <?php }else{ ?>
    <td>
    <table width="265" border="0">
  <tr>
    <td width="80" height="80" rowspan="5"><a rel="popuppopup[450,300]" href="upload/fotos/<?php echo $row_Recordset1['id_mobiliario']; ?>.jpg"><img src="upload/fotos/<?php echo $row_Recordset1['id_mobiliario']; ?>_t.jpg" /></a></td>
    </tr>
    </table>
    
    
    
    <?php echo $a$va=1?></td>
  </tr>
  <?php
  
}
  
$a++;

}
?>
  <?php if($numValores%2){ ?>
    <td>&nbsp;</td>
  </tr>
  <?php ?>
</table>