1
rookiecn
about xoopsObjectTree
  • 2008/3/27 18:21

  • rookiecn

  • Just popping in

  • Posts: 1

  • Since: 2008/3/27


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.

2
hervet
Re: about xoopsObjectTree
  • 2008/4/4 17:50

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


XoopsObjectTree is used to "manage" trees.
In fact to order trees, not to make queries

Login

Who's Online

376 user(s) are online (259 user(s) are browsing Support Forums)


Members: 0


Guests: 376


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits