Server IP : 2a02:4780:11:1359:0:1d43:a566:2 / Your IP : 216.73.216.199 Web Server : LiteSpeed System : Linux in-mum-web1259.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u490972518 ( 490972518) PHP Version : 5.6.40 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u490972518/domains/ppschool.org.in/public_html/admin/../sale_new/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); require('php-includes/connect.php'); $flag=$_POST['flag']; $Enrollment_No=''; //echo $sponser_name; $student_name=$_POST['student_name']; $father_name=$_POST['father_name']; $father_name=$_POST['father_name']; $mother_name=$_POST['mother_name']; $dob=$_POST['dob']; $gender=$_POST['gender']; $adhar=$_POST['adhar']; $session=$_POST['session']; $email=$_POST['email']; $mobile=$_POST['mobile']; $course=$_POST['course']; $duration=$_POST['duration']; $course_fees=$_POST['course_fees']; $address=$_POST['address']; $city=$_POST['city']; $dist=$_POST['dist']; $state=$_POST['state']; $pincode=$_POST['pincode']; $adm_date=$_POST['date']; //$time=$_POST['time']; $imgname=$_FILES['picture']['name']; $signature=$_FILES['signature']['name']; //echo"$imgname"; $size=$_FILES['picture']['size']; $size_signature=$_FILES['signature']['size']; //echo"$size"; $type=$_FILES['picture']['type']; $type_signature=$_FILES['signature']['type']; //echo"$type"; $tempname=$_FILES['picture']['tmp_name']; $tempname_sign=$_FILES['signature']['tmp_name']; //echo"$tempname"; $pathinfo=pathinfo($imgname,PATHINFO_EXTENSION); //echo"$pathinfo"; if($pathinfo!=""|| $pathinfo!=null) { $newimgname=time()."_".$name.".".$pathinfo; //echo$newimgname; } else { $newimgname=""; } $pathinfo=pathinfo($signature,PATHINFO_EXTENSION); //echo"$pathinfo"; if($pathinfo!=""|| $pathinfo!=null) { $newsignature=time()."_".$mother.".".$pathinfo; //echo$newimgname; } else { $newsignature=""; } $center_name=$_POST['center_name']; $sel2="select * from center_add where center_name='$center_name' order by id desc"; $res2=mysqli_query($conn,$sel2); $row2=mysqli_fetch_array($res2,MYSQLI_BOTH); //echo $side; $date=date("Y-m-d"); date_default_timezone_set("asia/kolkata"); $time=date("h:i:sa"); $datetime=$date." ".$time; ////////////////////for code left right $location="code/img/"; $location1="code/img/"; if($newsignature=='') { $up="UPDATE `student` SET `student_name` = '$student_name', `father_name` = '$father_name', `mother_name` = '$mother_name', `dob` = '$dob', `gender` = '$gender', `adhar` = '$adhar', `session` = '$session', `email` = '$email', `mobile` = '$mobile', `course` = '$course', `duration` = '$duration', `course_fees` = '$course_fees', `address` = '$address', `city` = '$city', `dist` = '$dist', `state` = '$state', `pincode` = '$pincode',adm_date='$adm_date' WHERE `id` = '$flag'"; if(mysqli_query($conn,$up)) { echo '<script>alert("Update Success.");window.location.assign("unregistered.php");</script>'; } } if($newimgname=='') { $up="UPDATE `student` SET `student_name` = '$student_name', `father_name` = '$father_name', `mother_name` = '$mother_name', `dob` = '$dob', `gender` = '$gender', `adhar` = '$adhar', `session` = '$session', `email` = '$email', `mobile` = '$mobile', `course` = '$course', `duration` = '$duration', `course_fees` = '$course_fees', `address` = '$address', `city` = '$city', `dist` = '$dist', `state` = '$state', `pincode` = '$pincode',adm_date='$adm_date' WHERE `id` = '$flag'"; if(mysqli_query($conn,$up)) { echo '<script>alert("Update Success.");window.location.assign("unregistered.php");</script>'; } } if($newsignature!='') { $up="UPDATE `student` SET `student_name` = '$student_name', `father_name` = '$father_name', `mother_name` = '$mother_name', `dob` = '$dob', `gender` = '$gender', `adhar` = '$adhar', `session` = '$session', `email` = '$email', `mobile` = '$mobile', `course` = '$course', `duration` = '$duration', `course_fees` = '$course_fees', `address` = '$address', `city` = '$city', `dist` = '$dist', `state` = '$state', `pincode` = '$pincode',signature='$newsignature' ,adm_date='$adm_date' WHERE `id` = '$flag'"; if(mysqli_query($conn,$up)) { move_uploaded_file($tempname_sign,$location1.$newsignature); echo '<script>alert("Update Success.");window.location.assign("unregistered.php");</script>'; } } if($newimgname!='') { $up="UPDATE `student` SET `student_name` = '$student_name', `father_name` = '$father_name', `mother_name` = '$mother_name', `dob` = '$dob', `gender` = '$gender', `adhar` = '$adhar', `session` = '$session', `email` = '$email', `mobile` = '$mobile', `course` = '$course', `duration` = '$duration', `course_fees` = '$course_fees', `address` = '$address', `city` = '$city', `dist` = '$dist', `state` = '$state', `pincode` = '$pincode',signature='$newimgname' ,adm_date='$adm_date' WHERE `id` = '$flag'"; if(mysqli_query($conn,$up)) { move_uploaded_file($tempname,$location.$newimgname); echo '<script>alert("Update Success.");window.location.assign("unregistered.php");</script>'; } } ?>