View Single Post
07-30-2012, 06:03 AM
#3
unikorndesigns is offline unikorndesigns
unikorndesigns's Avatar
Status: Junior Member
Join date: May 2011
Location:
Expertise: Web Designing and Development
Software: Photoshop, Dreamweaver and etc
 
Posts: 41
iTrader: 0 / 0%
 

unikorndesigns is on a distinguished road

  Old

PHP Code:
<?php  
    $child 
getChild();  
    echo 
"\n<ul>\n" ;  
        foreach (
$child as $childcat) {  
            
$cat_id $childcat['cat_id'];  
            
$cat_name $childcat['cat_name'];  
            
$url $_SERVER['PHP_SELF'] . "?c=$cat_id";  
            echo 
"<li><a href='".$_SERVER['PHP_SELF']."?c=$cat_id"'>$cat_name</a></li>\n"
        }   
    echo 
"</ul>" ;  
?>
this should work!!!!!!

Reply With Quote