Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/04/2007, 13:35
Avatar de chalchis
chalchis
 
Fecha de Ingreso: julio-2003
Mensajes: 1.773
Antigüedad: 20 años, 9 meses
Puntos: 21
Pregunta paginar listado en dos columnas

hola amigos espero me puedan ayudar encontre este script para mostrar
el listado de una consulta en 2 columnas pero como podria adaptar el paginador de jpinedo a esto


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<?php
include('director_config.php');
$conexion = mysql_connect($director_host, $director_usuario, $director_password) or die("error al conectarse al servidor");
mysql_select_db($director_base,$conexion) or die("error al conectarse a la base de datos");

$consulta = "SELECT ARTICULO_ID,TEMA_ARTICULO FROM $director_articulo";

$limite_columna1 = sprintf("%s LIMIT %d, %d", $consulta, 0, 3);
$resultados1 = mysql_query($limite_columna1, $conexion) or die(mysql_error());

$columna1 = mysql_fetch_assoc($resultados1);

$limite_columna2 = sprintf("%s LIMIT %d, %d", $consulta, 3, 3);
$resultados2 = mysql_query($limite_columna2, $conexion) or die(mysql_error());

$columna2 = mysql_fetch_assoc($resultados2);


echo '<table width="398" border="1">';
echo '<tr>';
echo '<td>';
echo '<table width="190" border="0" cellspacing="0" cellpadding="0">';
do {
echo '<tr>';
echo '<td height="0"></td>';
echo '</tr>';
echo '<tr>';
echo '<td class="nota_texto_segundos"><span class="marquito"><img src="Image_nota/dosa.gif" width="60" height="58" /></span> <span class="tit_nota_segundo">'.$columna1['TEMA_ARTICULO'].'</span><br/>
';
echo '</td>';
echo '</tr>';
}
while ($columna1 = mysql_fetch_assoc($resultados1));
echo '</table>';
echo '</td>';
echo '<td>';
echo '<table width="190" border="0" cellspacing="0" cellpadding="0">';
do {
echo '<tr>';
echo '<td height="0"></td>';
echo '</tr>';
echo '<tr>';
echo '<td class="nota_texto_segundos"><span class="marquito"><img src="Image_nota/dosa.gif" width="60" height="58" /></span> <span class="tit_nota_segundo">'.$columna2['TEMA_ARTICULO'].'</span><br/>
';
echo '</td>';
echo '</tr>';
}
while ($columna2 = mysql_fetch_assoc($resultados2));
echo '</table>';
echo '</td>';
echo '</tr>';
echo '</table>';



mysql_close($conexion);
?>
</body>
</html>

saludos
espero sus comentarios
gracias

aqui les pongo la nota original
__________________
gerardo