require_once("../conn.php");
require_once("access.php");
//get the categories
$q1 = "select * from yellow_categories,yellow_subcat where CategoryID=rootcatid";
$r1 = mysql_query($q1) or die(mysql_error());
if(mysql_num_rows($r1) == '0')
{
echo "
CLASSIFIEDS v2.0
|
LIST SUBCATEGORIES | ||
SubCategories | Root Category | Action | $a1[subcatname] | $a1[CategoryName] | edit | delete | \n\n