Ver Mensaje Individual
  #7 (permalink)  
Antiguo 06/09/2002, 04:28
Avatar de Cain
Cain
 
Fecha de Ingreso: enero-2002
Ubicación: Catalunya
Mensajes: 6.459
Antigüedad: 22 años, 3 meses
Puntos: 17
Re: Resultados en dos columnas...

Prueba esto:
Código:
echo "<table border=\"0\" align=\"center\" width=\"100%"\>";

$result = sql_query("select campo 1, campo2 from tabla1 WHERE UPPER(campo2) LIKE '$ltr%' AND id='$id' ORDER BY campo2", $conexion);

if (sql_num_rows($result, $conexion) == 0) {
echo "<center><i>No hay contenido</i></center>";
}

for($i=1; list($campo1, $campo2) = sql_fetch_row($result, $conexion); $i++) {
if (($i % 2) == 1) {echo "<tr>";}
echo "<td><a href=\"pagina?=id=$id\">$campo2</a></td>";
if (($i % 2) == 0) {echo "</tr>";}
}
echo "</table>";
<div style="font:small Verdana;">Proximamente...</div>
<div align="center" style="font:bold small Verdana;"><a style="text-decoration:none;" href="http://www.traduim.com" target="_blank">Traduim</a>: El portal de los traductores</div>