My database tbl_user has the following columns :
$user_id = 2;
$user_tree = $this->getAllRec(“u.user_id”,
“tbl_user u”,
“WHERE u.Upline = '”.$user_id."’
ORDER BY Right_id ASC");
print_r($user_tree);
I want the array $user_tree
to hold (user_id 5) first, then (user_id 6), how to do that?
I want to print (Left_id) first, then only print (Right_id). May I know how to do it?