he hecho estas modificaciones pero tampoco me funciona mira este es el codigo completo:
Código PHP:
<?php
session_start();
include('header.php');
if (!isset($_SESSION['logueado_usuario'])) {
include ("login.php");
echo "<a href='registro.php'>Registrarse</a>" ;}
else {
$nombre =$_SESSION['logueado_nombre'];
$id_usuario=$_SESSION['logueado_id'];
$obejeto=$_REQUEST['objeto'];
}?>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$("li").click(function ()
{
if(!$(this).next("li").length)
{
$(this).css("display", "none");
$("ul li:first-child").css("display", "inline");
return false;
}
$(this).css("display", "none");
$(this).next().css("display", "inline");
});
});
</script>
<?php
include("privados/config.php");
$id=$_GET['id'];
$resultados=mysql_query("select * from imagenes where id_logueado='$id_usuario'",$conexion) or
die("Problemas en el select:".mysql_error());
$i = 0;
?>
<ul id="click-cambio">
<?php
$i = 1;
while($fot=mysql_fetch_assoc($resultados))
{
$foto_nombre=$fot['nombre'];
?><?php if($i=1)
{?><li class="primero"><?php }else{?> <li> <? } ?><img src="<?php echo "$foto_nombre"; ?>" alt="Imagen N" rel="<?php echo $i; ?>" /> </li>
<?php
++$i;
}
?> </ul>
Nose como puedo hacer, hay alguna manera mas facil de hacer una paginacion de resultados pero es que en el link lo tengo asi:
http://localhost/articulos.php?id=1 para que recoja ese articulo foto lo que sea y me lo muestre yo solo quiero añadir botones para pasar dichos articulos, pero nose como hacerlo. gracias.