buddyburton 0 Newbie Poster

PHP Syntax (Toggle Plain Text)

1. function GetDownline($member_id,$direction)
2. {
3. $getdownlinesql = @mysql_fetch_assoc(@mysql_query('select memberid,placementid,position from `yourrelationaltable` where placementid="'.$member_id.'" and position="'.$direction.'"'));
4. $getdownline = $getdownlinesql;
5. return $getdownline;
6. }
7. then simply call it with:
8. $firstleft = GetDownline('headmemberidhere','Left'); //for first left
9. $firstright = GetDownline('headmemberidhere','Right'); //for first right
10. echo $firstleft;
11. echo $firstright;

buddyburton 0 Newbie Poster

Hello Friends.
I read your entire post it is too good well your answer is that here so read carefully
Path and name are passed as the command line arguments, and the script accesses them as positional parameters 1 and 2.
$1 and $2 in the code above are their respective values.

buddyburton 0 Newbie Poster

Hello Friends.
I read your entire post it is nice place to share a problem well you have not post your full code so it is difficult to find the problem so first post here full code(included Header file) so I will check it and reply you.