require_once('conexion/base.htm'); mysql_select_db($base, $conexion); //script paginado if((!empty($_GET['npag'])) and (!empty($_GET['interv']))){ $npag=$_GET['npag']; $interv=$_GET['interv']; } else{ $npag=0; $interv=0; }//fin $sql_noti="SELECT * FROM noticias ORDER BY idnoti DESC LIMIT ".$interv.",10"; $consulta_noti=mysql_query($sql_noti); $sql_total="SELECT * FROM noticias"; $consulta_total=mysql_query($sql_total); $total=mysql_num_rows($consulta_total); $cantpag= ceil($total/10)-1; ?>
![]() |
![]() |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||