$mostrar = $_GET["cat"]; if (isset($mostrar)) { } else { header("Location: index.php"); } ?> require('cgi-bin/contador.php'); include('cgi-bin/navega.php'); include('cgi-bin/enlaces.php'); include('cgi-bin/pie.php'); ?>
$enlace = mysqli_connect("localhost", "eriscomm_blogus", "ecen9054", "eriscomm_blog"); $mostrar = $_GET["cat"]; $result=mysqli_query($enlace, "select * from bl_arts where categoria = '$mostrar' order by id desc"); ?> while ($row=mysqli_fetch_array($result)) { echo''.$row["titulo"].''; echo' '.$row["fecha"].' - Lecturas: '.$row["visitas"].' - Categoria: '.$row["categoria"].' - Autor: '.$row["autor"].' '; echo''; echo' '.$row["resumen"].' '; echo'Leer Más '; echo'
'; } mysqli_free_result($result) ?> |
Navega
Temas
$enlace = mysqli_connect("localhost", "eriscomm_blogus", "ecen9054", "eriscomm_blog"); $result=mysqli_query($enlace, "select distinct categoria from bl_arts order by fecha desc limit 20"); ?> while ($row=mysqli_fetch_array($result)) { echo' '; } mysqli_free_result($result) ?>
Archivo
$enlace = mysqli_connect("localhost", "eriscomm_blogus", "ecen9054", "eriscomm_blog"); $result=mysqli_query($enlace, "select distinct aa from bl_arts order by id"); ?> while ($row=mysqli_fetch_array($result)) { echo' '; } mysqli_free_result($result) ?> $enlace = mysqli_connect("localhost", "eriscomm_blogus", "ecen9054", "eriscomm_blog"); $año = date ("Y"); $result=mysqli_query($enlace, "select distinct mm from bl_arts where aa = '$año' order by id"); ?> while ($row=mysqli_fetch_array($result)) { echo''; } mysqli_free_result($result) ?>
Enlaces echo "$enlaces"; ?> |
echo "$pie"; ?> |
|