-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoctorlogged.php
More file actions
61 lines (58 loc) · 2.04 KB
/
doctorlogged.php
File metadata and controls
61 lines (58 loc) · 2.04 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<html>
<head>
</head>
<body class="parallax">
<?php
session_start();
include 'doctornav.php';
include 'conn.php';
error_reporting(0);
$doctor_email_id = (string) $_POST['doctor_email_id'];
$doctor_password = (string) $_POST['doctor_password'];
$_SESSION['doctor_email_id']=$doctor_email_id;
$str="SELECT * FROM doctordetail WHERE doctor_email_id = '".$_SESSION['doctor_email_id']."'";
$records = mysql_query($str);
while($row = mysql_fetch_array($records))
{
$base_password=$row['doctor_password'];
$doctor_first_name=$row['doctor_first_name'];
}
if($doctor_password != $base_password)
{
//echo "incorrect password <br />";
//header("Location: http://localhost/site/doctorlogin.php");
//$message = "Username /or Password incorrect.\\nTry again.";
//echo "<script type='text/javascript'>alert('$message');</script> <a href='http://localhost/site/doctorlogin.php'> Click</a> here to login again";
echo "<script>
alert('wrong E-mail or Password!!!');
</script>";
echo '<script>window.location="doctorlogin.php";</script>';
}
$str="SELECT * FROM appointeddoctor where doctor_name LIKE \"%".$doctor_first_name."%\"";
//echo $str;
$records = mysql_query($str);
echo"
<div style=\"padding:20px 0px 0px 0px;\"/>
<div class=\"container\" style=\"background:white;opacity:0.88\">
<ul class=\"collection\">";
//http://www.example.com/index.html?name=john&email=john@gmail.com&contact=9877989898
while($row = mysql_fetch_array($records))
{
//print_r ($row);
$patient_aadhaar=$row['patient_aadhaar'];
$patient_name=$row['patient_name'];
$illiness=$row['illiness'];
echo"
<li class=\"collection-item avatar\">
<p>Patient Name: ".$patient_name." <br>
Patient Aadhaar Card: ".$patient_aadhaar." <br>
Illiness: ".$illiness."
</p>
<a href=\"doctorpatient.php?patient_aadhaar=".$patient_aadhaar."&illiness=".$illiness."\" class=\"secondary-content\"><i class=\"material-icons\">send</i></a>
</li>";
}
?>
</ul>
</div>
</body>
</html>