File manager - Edit - /home/gyanmanjari-lms/htdocs/lms.gyanmanjari.co.in/student/submit_leave.php
Back
<?php include '../helpers/helpers.php'; checkLogin('student'); include '../config/config.php'; $uid=$_SESSION['user']['id']; $s=$conn->query("SELECT * FROM students WHERE user_id=$uid")->fetch_assoc(); $ip= isset($_POST['informed_parents'])?'Yes':'No'; $q="INSERT INTO leave_requests(student_id,student_name,standard,class,roll_no,phone,subject,reason,start_date,end_date,informed_parents,apply_date,status) VALUES( '{$s['student_id']}','{$s['name']}','{$s['standard']}','{$s['class']}','{$s['roll_no']}','{$s['phone']}', '{$_POST['subject']}','{$_POST['reason']}','{$_POST['start_date']}','{$_POST['end_date']}','$ip','{$_POST['apply_date']}','Pending')"; $conn->query($q); header("Location: dashboard.php"); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.14 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings