Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/06/2005, 17:38
safe
 
Fecha de Ingreso: enero-2003
Ubicación: Córdoba, Argentina
Mensajes: 1.047
Antigüedad: 21 años, 3 meses
Puntos: 10
Yo uso esta forma para mostrar los resultados en dos columnas:

Código PHP:
<?
echo "<table>\n<tr>\n";
$i=0;
while(
$rs mysql_fetch_array($sql)) 
   echo 
"<td>".$rs['registro']."</td>\n";
   
$i++;
   if(
$i==2){
      echo 
"</tr>\n<tr>\n";
      
$i=0;
   }
}

if(
$i==1){
   echo 
"<td>&nbsp;</td></tr></table>";
}elseif(
$i==0){
   echo 
"<td>&nbsp;</td><td>&nbsp;</td></tr></table>";
}

?>
Saludos.
__________________
oohh... quisiera ser godines!!!