Ver Mensaje Individual
  #25 (permalink)  
Antiguo 22/03/2013, 14:17
Avatar de skardo
skardo
 
Fecha de Ingreso: febrero-2013
Ubicación: Lima
Mensajes: 68
Antigüedad: 11 años, 2 meses
Puntos: 1
Respuesta: Consulta 20 y que reporte 10 y un boton de SIGUIENTE

no veo el error!!!

Código PHP:
Ver original
  1. <?php
  2.             $countResult=mysql_query("SELECT * as NumRegistros FROM imagen");
  3.             $filas= mysql_num_rows($countResult);
  4.             $total_paginas = ceil($filas/$limit);
  5.             $pageNum= (isset($_GET["page"])?$_GET["page"]:1);
  6.             $resultado=mysql_query("SELECT * FROM imagen WHERE album='Lineas de Transmision' and categoria= 'Construccion' and estado=1 {$climit}");
  7.             while($row=mysql_fetch_array($resultado))
  8.             {
  9.         ?>
  10.                 <a href="index_transmision.php?imagen_id=<?php print $row['imagen_id'];?>">
  11.                     <img src="<?php echo 'admin/galeria/fotos/'.$row['thumb'];?>" style=" opacity:0.5; filter:alpha(opacity=50);" />
  12.                 </a>
  13.             <?php
  14.             }//while
  15.             if ($filas <= 14){    
  16.             ?>
  17.                 <a href="<?php echo @$_SERVER['PHP_SELF'];?>?page=<?php echo $pageNum+1;?>"><img src="admin/galeria/img/galeria_next.png"/></a>
  18.             <?php
  19.             } else{
  20.             ?>
  21.             <a href="<?php echo @$_SERVER['PHP_SELF'];?>?page=<?php echo $pageNum-1;?>"><img src="admin/galeria/img/galeria_prev.png"/></a>
  22.             <?php
  23.              }
  24.             ?>