Ver Mensaje Individual
  #4 (permalink)  
Antiguo 24/07/2004, 18:48
Avatar de WyLY
WyLY
 
Fecha de Ingreso: enero-2002
Ubicación: Cancun, México.
Mensajes: 506
Antigüedad: 22 años, 3 meses
Puntos: 6
Bueno aqui esta el codigo completo:
Código PHP:
 <?php
include("conexio.php");
if(!
$rowstart$rowstart=0
$max 5;
$result mysql_query("SELECT * FROM fotos6d WHERE seccion LIKE '$de' ORDER BY id DESC limit $rowstart,$max"); 
$result2 mysql_query("SELECT * FROM fotos6d  WHERE seccion LIKE '$de' ORDER BY id DESC");
echo 
"<table border=0 align=center cellpadding=1 cellspacing=1 bgcolor=#999900><tr valign=middle bgcolor=#CCCC00>";
while (
$row mysql_fetch_array($result)) {
  echo 
"<tr><td><div align=center><a href=imagenn.php?id=".$row["id"]."><img src=imagen2.php?id=".$row["id"]." border=0></a></div></td>"
}
echo 
"</table>";
mysql_close ($conexio);
?>
              <div align="center">
                <? if ($rowstart>$numrows)
?>
                <p><a href="<? $php_self?>?de=<? echo $de ?>&rowstart=<? echo $rowstart-$max;?>"><font size="2" face="tahoma, arial, verdana">&lt;Anterior</font></a>
                  <?}?>
                    <span class="style5">|</span>
                  <? 
$numrows
=mysql_num_rows($result2); 
if(
$rowstart+$max<$numrows)  
{
?>
                    <a href="<? $php_self?>?de=<? echo $de ?>&rowstart=<?echo $rowstart+$max ;?>"> <font size="2" face="tahoma, arial, verdana">Siguiente&gt;</font></a>
                  <? ?>
ahora?
__________________
I do techy stuff for a living and practice MMA with my dog... He always wins.