View Single Post
(#17)
Maffo Maffo is offline
Senior Member
Maffo is on a distinguished road
 
Posts: 340
Join Date: Mar 2006
Location: English in Argentina
Send a message via MSN to Maffo
Default 10-09-2006, 11:31 AM

In your newpage.php find this code

PHP Code:
$tree = cat_tree("", 0);
    
$class_tpl->assign('getcats', $tree);

Replace with this

PHP Code:
$sSQL="SELECT id,name,cOrder FROM ".PREFIX."categories WHERE parent_id<>0 AND display <>'N' ";
        
$result = $db->query($sSQL);
        
$tree=array();
            while (
$rs = $result->fetch())
            {
                
array_push ($tree,$rs);
            }

$class_tpl->assign('getcats', $tree);

Hope that works


I say what I like and I like what I bloody well say