View file viewcat.php
<? include "head.php"; ?> <? include "config.php"; ?> <div class="title">Меню:</div> <div class="main"> <? $id = $_GET['id']; $cat = mysql_query("SELECT * FROM blogs WHERE idcat='$id'") or die ("MySQL Error"); while($view_cat = mysql_fetch_array($cat)) { echo "<a href=viewzapis.php?id=".$view_cat[id].">$view_cat[name]</a><br>"; } ?> <br><a href="index.php">Главная</a> <? include "foot.php"; ?>