D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home5
/
rakcha
/
www
/
app
/
Filename :
croppie.php
back
Copy
<?php session_start(); include("includes/database.php"); $image = $_POST['image']; $page_user = $_SESSION['distributor_id']; $select_query = "select * from member where user_id='$page_user'"; $run = mysqli_query($con,$select_query); $serial = 1; while ($row = mysqli_fetch_array($run)) { $s_num = $serial++; $member_id = $row['member_id']; $profile = $row['profile']; $profile = $row['profile']; $title = $row['title']; $dob = $row['dob']; $name = $row['name']; $gender = $row['gender']; $address_1 = $row['address_1']; $address_2 = $row['address_2']; $town_area = $row['town_area']; $city_district = $row['city_district']; $state = $row['state']; $country = $row['country']; $pincode = $row['pincode']; $mobile_number = $row['mobile_number']; $email = $row['email']; $aadhaar_card = $row['aadhaar_card']; $pan_card = $row['pan_card']; $nominee_name = $row['nominee_name']; $nominee_relationship = $row['nominee_relationship']; $account_name = $row['account_name']; $account_number = $row['account_number']; $ifsc_code = $row['ifsc_code']; $bank_name = $row['bank_name']; $branch_name = $row['branch_name']; $member_no = $row['member_no']; $user_id = $row['user_id']; $sub_admin = $row['sub_admin']; $password = $row['password']; $elite_board = $row['elite_board']; $aadhaar_card_image = $row['aadhaar_card_image']; $pan_card_image = $row['pan_card_image']; $bank_proof_image = $row['bank_proof_image']; $document_status = $row['document_status']; $member_fess = $row['member_fess']; $activity_level = $row['activity_level']; $activity_referral = $row['activity_referral']; $activity_date = $row['activity_date']; $activity_month = $row['activity_month']; $aadhaar_card_image = $row['aadhaar_card_image']; $pan_card_image = $row['pan_card_image']; $bank_proof_image = $row['bank_proof_image']; $document_status = $row['document_status']; $date_of_join =$row['date_of_join']; $profile =$row['profile']; } if ($profile != '') { unlink($_SERVER['DOCUMENT_ROOT'] . "/user_profile/$old"); } list($type, $image) = explode(';',$image); list(, $image) = explode(',',$image); $image = base64_decode($image); $image_name = time().'.png'; file_put_contents('../user_profile/'.$image_name, $image); mysqli_query($con,"update member set profile='$image_name' where member_no = '$member_no'"); ?>