-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbalance.php
More file actions
65 lines (56 loc) · 1.72 KB
/
Copy pathbalance.php
File metadata and controls
65 lines (56 loc) · 1.72 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
<?php
session_start();
$con=mysqli_connect("localhost","phpmyadmin","Ratankumar@96","bankdb");
?>
<html>
<head>
<title>Balance _Info</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<body>
<?php
include("function.php");
if(isset($_POST['patient_search_submit']))
{
$contact=$_POST['search'];
$query="select * from registration where contact='$contact'";
$result=mysqli_query($con,$query);
echo"<div class=container-fluid' style='margin-top: 40px;'>
<div class='card'>
<div class='card-body'><a href='patient_details.php'class='btn btn-light'>Go Back</a></div>
<img src='images/3.jpeg' class='card-img-top'>
<div class='card-body' style='background-color: #3498DB ;color: #ffffff;''>
<table class='table table-hover'>
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Email id</th>
<th>Contact</th>
<th>Doctor Appointment</th>
</tr>
</thead>
<tbody>
";
while($row=mysqli_fetch_array($result))
{
$fname=$row['fname'];
$lname=$row['lname'];
$email=$row['email'];
$contact=$row['contact'];
$docapp=$row['docapp'];
echo" <tr>
<td>$fname</td>
<td>$lname</td>
<td>$email</td>
<td>$contact</td>
<td>$docapp</td>
</tr>";
}
echo "</tbody></table></div></div></div>";
}
?>
<scripts src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>
</html>