claro vos podes hacer un menu "Noticias" que a su vez tiene submenues de "categorias" de noticias. por que asi? por en un futuro vos podes tener muchas noticias y no vas a ver un menu para cada una, si te explota el codigo!
entonces
menu noticias
submenu de categorias de noticias
cada link de categoria va a ser asi:
Código PHP:
Ver original<?php
$sql="select * from categories limit 1, 10";
?>
<a href="noticias.php?id_category=<?php echo $row->id_category; ?> ></a>
<?php
}
?>
y en noticias.php por ejemplo
<?php
$id_category=isset($_GET['id_category'])?
$_GET['id_category']:0; $sql="select * from noticias not where not.id_category = $id_category limit 1, 10";
?>
<a href="detalle_noticia.php?id_noticia=<?php echo $row->id_noticia; ?> ></a>
<?php
}
?>
Por ultimo en detalle_noticia.php
<?php
$id_noticia=isset($_GET['id_noticia'])?
$_GET['id_noticia']:0; $sql="select * from noticias not where not.id = $id_noticia limit 1, 10";
//muestro todo el detalle de la noticia
}
?>