-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdetails.php
More file actions
124 lines (103 loc) · 4.07 KB
/
Copy pathdetails.php
File metadata and controls
124 lines (103 loc) · 4.07 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?php
session_start();
//$_SESSION['myusername'];
//$_SESSION['user'];
//@$_SESSION['doc'];
?>
<html>
<head>
<title></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans&display=swap" rel="stylesheet">
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="index.php">Health Card</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link" href="index.php">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="faq.php">FAQ</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.php">Contact Us</a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</body>
</head>
</html>
<html>
<head>
<title>Log In Successfully </title>
</head>
<style>
h3{
padding-top: 20px;
}
</style>
<body>
<h3 align="center" >Welcome To Your Account!!<br><br><br><?php echo"Welcome Doctor ".$_SESSION['myusername'];?>
<!--
<form action="request.php" method="post">
<input type="submit" name="submit" value="Send Request To Doctor" class="btn btn-success" autocomplete="off">
</form>
--></h3>
<!--
<h2><a href = "logout_pat.php">Sign Out</a></h2>
-->
<!--
<input type="submit" name="submit" value="Add Details">
-->
<!-- <input type="submit" name="submit" value="Add Details">-->
</body>
<?php
// if(isset($_SESSION['doc'])){
$servername = "localhost:3308";
$username = "bhavya";
$password = "1111";
$database="myDB";
$conn=mysqli_connect($servername,$username,$password,$database);
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
$_SESSION['doc']=isset($_SESSION['doc']) ? $_SESSION['doc']:'';
$sql = "SELECT doc ,pat FROM request WHERE doc='{$_SESSION['doc']}'";
$result=mysqli_query($conn,$sql);
while($row=mysqli_fetch_assoc($result))
{
echo "following ID has sent you a request and Patient ID is ".$row['pat']. "is".$row['doc'];
echo"<br>";
echo'<form action="index1.php" method="post">';
echo "<input type=\"submit\" value=\"Add Details\" name=\"submit\">";
echo"<input type=\"submit\" value=\"Update\" name=\"upload\">";
echo"</form>";
echo "</br>";
echo "</br>";
echo "</br>";
}
// if (mysqli_query($conn, $sql)) {
// echo "following user requested you!!".@$_SESSION['user'];
// }
mysqli_close($conn);
// }
// ?>
<h2><a href = "logout_doc.php">Sign Out</a></h2>
</html>