Просмотр файла cat.php
<? include "head.php"; ?> <? include "config.php"; ?> <div class="title">Меню:</div> <div class="main"> <? $cat = mysql_query("SELECT * FROM cat") or die ("MySQL Error"); while($view_cat = mysql_fetch_array($cat)) { echo "$view_cat[id]. <a href=viewcat.php?id=".$view_cat[id].">$view_cat[name]</a><br>$view_cat[ocat]<br>"; } ?> <br><a href="index.php">Главная</a> <? include "foot.php"; ?>