Location: PHPKode > projects > TorrentTrader > TorrentTrader-v2.06/upload/blocks/maincats_block.php
<?
if (!$site_config["MEMBERSONLY"] || $CURUSER) {
begin_block("".BROWSE_TORRENTS."");
	$catsquery = mysql_query("SELECT distinct parent_cat FROM categories ORDER BY parent_cat")or die(mysql_error());
	echo "- <a href=torrents.php>".SHOWALL."</a><BR>\n";
	while($catsrow = MYSQL_FETCH_ARRAY($catsquery)){
		echo "- <a href=torrents.php?parent_cat=".urlencode($catsrow['parent_cat']).">$catsrow[parent_cat]</a><BR>\n";
	}

end_block();
}
?>
Return current item: TorrentTrader