-
Notifications
You must be signed in to change notification settings - Fork 0
/
prescription.php
42 lines (30 loc) · 1.1 KB
/
prescription.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
session_start();
$con=mysqli_connect('localhost','root','');
mysqli_select_db($con,'hms');
$docid= $_POST['docid'];
$userid= $_POST['userid'];
$fname= $_POST['fname'];
$mail= $_POST['mail'];
$mobile= $_POST['mobile'];
$adate= $_POST['adate'];
$atime= $_POST['atime'];
$gender = $_POST['gender'];
$disease = $_POST['disease'];
$medicine = $_POST['medicine'];
$meet = $_POST['meet'];
$message = $_POST['message'];
$cfees = $_POST['cfees'];
$s = "select * from prescription";
$result = mysqli_query($con, $s);
$num = mysqli_num_rows($result);
if(isset($_POST['submit']))
{
$reg="insert into prescription(docid,userid,fullname,mailid,mobile,adate,atime,gender,cfees,disease,medicine,meet,message,status) values ('$docid','$userid','$fname','$mail','$mobile','$adate','$atime','$gender','$cfees','$disease','$medicine','$meet','$message','0')";
mysqli_query($con,$reg);
echo "<script>window.alert('Prescription Successfully Sended')</script>";
?>
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://localhost/hospital/docpreslist.php">
<?php
}
?>