コード例 #1
0
 public function includeProfile($profileUpdate)
 {
     $obj_vali = new Validation();
     $sess_obj->checkAdminLoged();
     $user_name = $_POST['user_name'];
     $user_id = $obj_vali->userNameToID($user_name);
     $obj_reg = new Register();
     $get_profile = new ToolTip();
     $obj_sponser = new Validation();
     $u_name = $_POST['user_name'];
     $user_id = $obj_sponser->userNameToID($u_name);
     $table_prefix = $_SESSION['table_prefix'];
     $user_details = $table_prefix . "user_details";
     $ft_individual = $table_prefix . "ft_individual";
     $qr = "select u.* from {$user_details} AS u\n    INNER JOIN {$ft_individual} AS f ON u.user_detail_refid=f.id\n    where user_detail_refid='" . $user_id . "'";
     //echo $qr;
     $details = $get_profile->getUserData($qr);
     $sponser = $obj_sponser->getSponserIdName($u_name);
 }
コード例 #2
0
 $doc[1][2] = "Name";
 $doc[1][3] = "Referral UserID";
 $doc[1][4] = "Referral Full Name";
 $doc[1][5] = "Mobile No";
 $doc[1][6] = "Email";
 $count = $count + 2;
 $j = 0;
 $k = 0;
 for ($i = 2; $i < $count; $i++) {
     $user_name = $obj_payout->actiavtion_details["detail{$k}"]["user_name"];
     $user_id = $obj_sponser->userNameToID($user_name);
     $table_prefix = $_SESSION['table_prefix'];
     $user_details = $table_prefix . "user_details";
     $qr = "select* from {$user_details} where user_detail_refid='" . $user_id . "'";
     //echo $qr;
     $details = $get_profile->getUserData($qr);
     //print_r($details);
     $name = $details["detail1"]["name"];
     $address = $details["detail1"]["address"];
     $land = $details["detail1"]["land"];
     $country = $details["detail1"]["country"];
     $state = $details["detail1"]["state"];
     $district = $details["detail1"]["district"];
     $mobile = $details["detail1"]["mobile"];
     $email = $details["detail1"]["email"];
     $acnumber = $details["detail1"]["acnumber"];
     $nbank = $details["detail1"]["nbank"];
     $nbranch = $details["detail1"]["nbranch"];
     $ifsc = $details["detail1"]["ifsc"];
     $pan = $details["detail1"]["pan"];
     $referral_id = $details["detail1"]["referral"];