1
What's $objectArr?
This is my code,of course it's wrong:
include("../../../include/cp_header.php");
include("../../../class/tree.php");
$queryString = "SELECT * from ".$xoopsDB->prefix('catalogue_cat')." ORDER BY 'sortid'";
$query = $xoopsDB->query("$queryString");
while($myrow = $xoopsDB->fetchBoth($query)){
$result[]=$myrow;
}
$tree = new XoopsObjectTree($query,'cid','pid');
?>
What's the right code?
My english is very poor,please help me.