'; $tincome=mysqli_query($cnn,"select * from total_income where user_id='$userid' group by user_id"); $income=mysqli_fetch_array($tincome); $tincomea=mysqli_query($cnn,"select * from autogrowth_totalincome where user_id='$userid'"); $incomea=mysqli_fetch_array($tincomea); $tincomear=mysqli_query($cnn,"select * from royalty_income where user_id='$userid'"); $incomer=mysqli_fetch_array($tincomear); ;echo '
Total Income

Total Income

₹ ';echo $income['joining_income']+$income['recharge_income']+$incomea['autogrowth_income']+$income['return_income'];;echo '

₹ ';echo $income['joining_income'];;echo '

Joining Income

Shopping Income

₹ ';echo $incomea['total_income'];;echo '

Single Leg

₹ ';echo $income['recharge_income'];;echo '

Recharge Income

₹ ';echo $incomer['holding_income'];;echo '

Holding Income

ROI ₹';echo $income['return_income'];;echo '

Upgrade Return

'; $tincome=mysqli_query($cnn,"select * from total_income where user_id='$userid'"); $income=mysqli_fetch_array($tincome); ;echo '
Cash Wallet
₹ ';echo $income['joining_wallet'];;echo '
Recharge Wallet
₹ ';echo $income['recharge_wallet'];;echo '
Shopping Wallet
Hello World!
Holding Wallet
₹ ';echo $incomer['holding_income'];;echo '
Single Leg Wallet
₹ ';echo $incomea['total_wallet'];;echo '
Upgrade Return
ROI ₹ ';echo $income['return_wallet'];;echo '
'; include("mainfunctions.php"); ;echo '
Team Status
Team @ Members
Total Team '; $level=$ref['reward']; echo totalmembers($cnn,$userid,$level,"1"); ;echo '
Direct Team
Active Team
Pending Team
'; $user=mysqli_fetch_array(mysqli_query($cnn,"select usa.*,us.user_name as sname,us.user_phone as sphone,us.user_id as uid from user_details as usa inner join user_details as us on us.user_id=usa.sponser_id where usa.user_id='$userid'")); $kyca=mysqli_query($cnn,"select * from kyc where user_id='$userid'"); $kyc=mysqli_fetch_array($kyca); $num=mysqli_num_rows($kyca); if($num) { $bs=$kyc['banks']; if($bs=='0') { $app='0'; } elseif($bs=='2'){ $app='2'; } else { $app='1'; } } else{ $app='0'; } if(isset($_POST['kyc'])) { $pan=$_POST['pan']; $accname=$_POST['acc_name']; $bankname=$_POST['bank_name']; $accno=$_POST['acc_no']; $ifsc=$_POST['bank_ifsc']; $uploadDir = "../uploads/"; if($pan=='') { $pan='1'; } $pfileName = $_FILES['pan_photo']['name']; if(file_exists("../uploads/".$_FILES['pan_photo']['name'])) { $pfilePath = rand().$pfileName; $path = $uploadDir .$pfilePath; move_uploaded_file($_FILES["pan_photo"]["tmp_name"],$path); $pfilePath = "uploads/".$pfilePath; } else{ $pfilePath = $pfileName; $path = $uploadDir .$pfilePath; move_uploaded_file($_FILES["pan_photo"]["tmp_name"],$path); $pfilePath = "uploads/".$pfilePath; } $bfileName = $_FILES['bank_photo']['name']; if($num) { mysqli_query($cnn,"update kyc set pan='$pan',bank_holder='$accname',bank_name='$bankname',bank_accno='$accno',bank_ifsc='$ifsc',pan_photo='$pfilePath',banks='0' where user_id='$userid'"); echo ""; } else{ mysqli_query($cnn,"insert into kyc(user_id,pan,pan_photo,bank_holder,bank_name,bank_accno,bank_ifsc) values('$userid','$pan','$pfilePath','$accname','$bankname','$accno','$ifsc')"); echo ""; } echo ""; } ;echo '
Profile Status
Name : ';echo $user['user_name'];;echo '
UserId : ';echo $user['user_id'];;echo '
Mobile Number : ';echo $user['user_phone'];;echo '
Email Id : ';echo $user['user_email'];;echo '
Sponser Id : ';echo $user['uid'];;echo '
Sponser Name : ';echo $user['sname'];;echo '
Sponser Mobile No : ';echo $user['sphone'];;echo '
Reg Date : ';echo $user['datejoin'];;echo '
Activation Date : ';echo $user['activedate'];;echo '
Royalty Status

Coming Soon

KYC Status   '; $_SESSION['kyc']=$app; if($app=='1') { echo "Approved"; } elseif($app=='2') { echo " Rejected "; } else { echo " Pending "; } ;echo '
'; $panup=$kyc['pan']; $_SESSION['pan']=$panup; if($panup=='1') { $panup=''; ;echo '

Pan Proof Not Available

'; } ;echo ' '; if($app=='0'||$app=='2') { ;echo ' '; } ;echo '
Pan Number: Upload Proof of Pan 
Bank Details
Acc Holder Name:  
Bank Name:  
Account No:  
IFSC Code:  

Pan Proof




I dont have a pan proof:
Notification
'; $uid=$_SESSION['id']; $getnotifi=mysqli_query($cnn,"select * from notification where user_id=''"); ;echo '
'; $i=1; while($userde=mysqli_fetch_array($getnotifi)) { $i++; ;echo '
';echo $userde['date'];;echo '

';echo $userde['title'];;echo '

';echo $userde['description'];;echo '


'; } ;echo ' '; $i=1; $getusernotifi=mysqli_query($cnn,"select * from notification where user_id='$userid'"); while($getuserde=mysqli_fetch_array($getusernotifi)) { $i++; ;echo '
';echo $getuserde['date'];;echo '

';echo $getuserde['title'];;echo '

';echo $getuserde['description'];;echo '


'; } ;echo '