Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/10/2008, 10:19
Avatar de sluis_angel30
sluis_angel30
 
Fecha de Ingreso: mayo-2005
Mensajes: 45
Antigüedad: 19 años
Puntos: 0
Problemas con listado en 2 columnas

Hola amigos, espeor me puedam orientar de esta problematica que me esta sucediendo.

Lo que pasa que tengo el siguiente codigo:

<?php require_once('Connections/columnas.php'); ?>
<?php
mysql_select_db($database_columnas, $columnas);
$consulta = "SELECT * FROM articulos, autores WHERE articulos.posicion ='otros' ORDER BY autores.id desc";
$limite_columna1 = sprintf("%s LIMIT %d, %d", $consulta, 0, 3);
$resultados1 = mysql_query($limite_columna1, $columnas) or die(mysql_error());
$columna1 = mysql_fetch_assoc($resultados1);
$limite_columna2 = sprintf("%s LIMIT %d, %s", $consulta, 3, 6);
$resultados2 = mysql_query($limite_columna2, $columnas) or die(mysql_error());
$columna2 = mysql_fetch_assoc($resultados2);


?>



<!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>


<table>
<tr>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>materia1</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $columna1['titulo']; ?></td>
</tr>
<?php } while ($columna1 = mysql_fetch_assoc($resultados1)); ?>
</table>
</td>
<td valign="top"><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>materia2</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $columna2['titulo']; ?></td>
</tr>
<?php } while ($columna2 = mysql_fetch_assoc($resultados2)); ?>
</table></td>
</tr>
</table>
</body>
</html>

-------------------------------------------------------------------------------------------------------

EL PROBLEMA RADICA EN QUE ME MUESTRA EL LISTADO PERO ME SE REPITEN LOS MISMO ITEMS. ESPEROME DEN LA MANO.
__________________
Developer Web

Téc. Informática y Sistemas Luis Angel Sebasiani Terrones
Diseño, Desarrollo Web y Multimedia - Publicidad Online

http://www.publinet92.com