include("conexiones/conexion_principal.php"); include("constantes/espanol.php"); include("includes/consultas.php"); require("funciones/flash.php"); if(isset ($_GET['id_post'])) {$id_post=$_GET['id_post']; } //Consultamos la base de datos para sacar la noticia $total_noticias=mysql_query("select * from noticias"); $total=mysql_num_rows($total_noticias); $noticia=mysql_query("select * from noticias where id_post=".$id_post); $noticia_row=mysql_fetch_assoc($noticia); //posicion del registro ultimo $pos_last=mysql_query("select max(id_post) from noticias"); $pos_row_last=mysql_fetch_assoc ($pos_last); //posicion del registro primero $pos_first=mysql_query("select min(id_post) from noticias"); $pos_row_first=mysql_fetch_assoc ($pos_first); ?>
|