-
Notifications
You must be signed in to change notification settings - Fork 0
/
status.php
27 lines (23 loc) · 798 Bytes
/
status.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
session_start();
$con=mysqli_connect('localhost','root','','hms');
$Sno = (isset($_POST['SNo']) ? $_POST['SNo'] : 'error');
//$name=$_SESSION['name'];
if(isset($_POST['accept']))
{
$query="UPDATE appointment SET action =true WHERE sno='$Sno'";
echo "<script>window.alert('Appointment Accepted')</script>";
?>
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://localhost/hospital/docappointment.php">
<?php
}
if(isset($_POST['reject']))
{
$query="UPDATE appointment SET doctorstatus =false WHERE sno='$Sno'";
echo "<script>window.alert('Appointment Rejected')</script>";
?>
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://localhost/hospital/docappointment.php">
<?php
}
mysqli_query($con,$query);
?>