11
I want an dropdown menu but sorted alphabetical by the title.
when i'm using this code p.x.
$mytree = new XoopsTree($xoopsDB->prefix("mytable_cat"),"cid","pid");
Then to display the dropdown menu this code p.x.
somefunction{
global $mytree
$mytree->makeMySelBox("title", "title", $cid);
}
The dropdown is not sorted in way that i like.
How can a sort the SelBox titles order by p.x. A,B,C ?
Please someone help me on this.
Thank you wery much.
when i'm using this code p.x.
$mytree = new XoopsTree($xoopsDB->prefix("mytable_cat"),"cid","pid");
Then to display the dropdown menu this code p.x.
somefunction{
global $mytree
$mytree->makeMySelBox("title", "title", $cid);
}
The dropdown is not sorted in way that i like.
How can a sort the SelBox titles order by p.x. A,B,C ?
Please someone help me on this.
Thank you wery much.