<?php
require_once "../sys/func.php";
$title = 'Категорий';
require_once "../sys/head.php";
$sql = mysql_query("SELECT * FROM `category` ");
while($cat = mysql_fetch_assoc($sql)) { echo '<a href="section.php?id='.$cat['id'].'" class="link"><img src="/images/star.png"> '.$cat['name'].'</a>'; }
echo '<div class="c"><a href="/"><img src="/images/arr_b.png" /> Назад</a></div>';
require_once "../sys/foot.php";
?>