Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/leadriding/Admin/action/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); include '../Includes/db.php'; // include'../compression.php'; // $uid = $_SESSION["userId"]; date_default_timezone_set('Asia/Kolkata'); $cudate = date("Y-m-d") ; extract($_POST); $bid = $_GET['id']; $sub1 = implode(',', $sub); $sql = "select * from tbl_vendore where id='$bid'"; $sql_res = mysqli_query($con, $sql) or die(mysqli_error($con)); $sql_row = mysqli_fetch_assoc($sql_res); $fe_img = $sql_row['adhar_img']; $fe_img1 = $sql_row['pan_img']; $fe_img2 = $sql_row['gst_img']; $fe_img3 = $sql_row['profile_photo']; $fe_img4 = $sql_row['photo1']; $fe_img5 = $sql_row['photo2']; $fe_img6 = $sql_row['video']; $fe_img7 = $sql_row['banner']; // $dr_photo = $_FILES['do_photo']['name']; // $fmgg = $fe_img; // if(strlen($_FILES['do_photo']['name']) != 0) { // $newThumb = $_FILES['do_photo']['name']; // $thumbPath = "../../vendor/" . $newThumb; // move_uploaded_file($_FILES['do_photo']['tmp_name'], $thumbPath); // $fmgg = $newThumb; // unlink("../../vendor/" . $fe_img); // } // $dr_photo = $_FILES['do_photo1']['name']; // $fmgg1 = $fe_img1; // if(strlen($_FILES['do_photo1']['name']) != 0) { // $newThumb = $_FILES['do_photo1']['name']; // $thumbPath = "../../vendor/" . $newThumb; // move_uploaded_file($_FILES['do_photo1']['tmp_name'], $thumbPath); // $fmgg1 = $newThumb; // unlink("../../vendor/" . $fe_img1); // } $dr_photo = $_FILES['do_photo2']['name']; $fmgg2 = $fe_img2; if(strlen($_FILES['do_photo2']['name']) != 0) { $newThumb = $_FILES['do_photo2']['name']; $thumbPath = "../../vendor/" . $newThumb; move_uploaded_file($_FILES['do_photo2']['tmp_name'], $thumbPath); $fmgg2 = $newThumb; unlink("../../vendor/" . $fe_img2); } $dr_photo = $_FILES['do_photo3']['name']; $fmgg3 = $fe_img3; if(strlen($_FILES['do_photo3']['name']) != 0) { $newThumb = $_FILES['do_photo3']['name']; $thumbPath = "../../vendor/" . $newThumb; move_uploaded_file($_FILES['do_photo3']['tmp_name'], $thumbPath); $fmgg3 = $newThumb; unlink("../../vendor/" . $fe_img3); } $dr_photo = $_FILES['do_photo4']['name']; $fmgg4 = $fe_img4; if(strlen($_FILES['do_photo4']['name']) != 0) { $newThumb = $_FILES['do_photo4']['name']; $thumbPath = "../../vendor/" . $newThumb; move_uploaded_file($_FILES['do_photo4']['tmp_name'], $thumbPath); $fmgg4 = $newThumb; unlink("../../vendor/" . $fe_img4); } $dr_photo = $_FILES['do_photo5']['name']; $fmgg5 = $fe_img5; if(strlen($_FILES['do_photo5']['name']) != 0) { $newThumb = $_FILES['do_photo5']['name']; $thumbPath = "../../vendor/". $newThumb; move_uploaded_file($_FILES['do_photo5']['tmp_name'], $thumbPath); $fmgg5 = $newThumb; unlink("../../vendor/" . $fe_img5); } $dr_photo = $_FILES['do_photo6']['name']; $fmgg6 = $fe_img6; if(strlen($_FILES['do_photo6']['name']) != 0) { $newThumb = $_FILES['do_photo6']['name']; $thumbPath = "../../vendor/". $newThumb; move_uploaded_file($_FILES['do_photo6']['tmp_name'], $thumbPath); $fmgg6 = $newThumb; unlink("../../vendor/" . $fe_img6); } $dr_photo = $_FILES['do_photo7']['name']; $fmgg7 = $fe_img7; if(strlen($_FILES['do_photo7']['name']) != 0) { $newThumb = $_FILES['do_photo7']['name']; $thumbPath = "../../vendor/". $newThumb; move_uploaded_file($_FILES['do_photo7']['tmp_name'], $thumbPath); $fmgg7 = $newThumb; unlink("../../vendor/" . $fe_img7); } $sdesc1 = mysqli_real_escape_string($con, $sdesc); // adhar_img='$fmgg',pan_img='$fmgg1',categorie='$cat',sub_categorie='$sub1',package='$pak',working_area='$working_area', $SQL = "UPDATE tbl_vendore set name='$name',cname='$cname',email='$email',phone='$phone',address='$add',pincode='$pincode',city='$city',wh_no='$whno', gst_img='$fmgg2',profile_photo='$fmgg3',photo1='$fmgg4',time='$time',mem_sin='$mem_sin',photo2='$fmgg5',banner='$fmgg7',relationship_manger='$relationship_manger',password='$pass',sdesc='$sdesc1',time='$time',video='$fmgg6' where id='$bid' "; if ($con->query($SQL) === TRUE) { echo "<script>; alert('Your Data Added Succesfully'); window.location.href='../my_profile.php'; </script>"; } else { echo "<script>; alert('Your category Not Added '); window.location.href='../my_profile.php'; </script>"; } ?>