<div id='right'> <form id="search" method='GET' action='<?php echo SITE_PATH; ?> '> <p><b>Article's name:</b><br /> <input name='find'></p> <input type='submit' value='Search'> </form> <div id="topics"> <h2>Topics</h2><br /> <?php $cat = new ask(); $cat->get_field("SELECT DISTINCT Category FROM Articles"); foreach ($cat->toShow as $string) { if (empty($string)) { continue; } echo "<a href='" . SITE_PATH . "?cat=" . $string . "'>" . $string . "</a><br />"; } echo "<a href='" . SITE_PATH . "?cat='>Without category</a>"; ?> </div> <a href="<?php echo SITE_PATH; ?> ?all">Articles Archive</a> </div>