-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
85 lines (65 loc) · 2.49 KB
/
search.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
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
<?php
include "translate.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>notification</title>
</head>
<style>ul{
font-size:24px;
}
h1{
font-size:50px;
padding-top:60px;
}
img
{ float: left;
width: 77px;
}
body {
font: 400 15px/1.8 Lato, sans-serif;
color: #777;
margin:0;
padding:0;
width:100%;
height:100vh;
background-image:url(pic/1.jpg);
background-size:cover;}
</style>
<body class="container">
<form action="search.php" method="POST">
<table border="1" cellPadding="13" align="center"
class="table table-hover table-dark">
<h1 class="text-center font-weight-bold text-white">Searching Doctor's</h1>
<?php include("connection.php");
error_reporting(0);
if(isset($_POST["search"]))
{
$name=$_POST['f_name'];
$query1 = "SELECT * from doctor inner join schedule on schedule.d_id=doctor.id WHERE (permission='approved' OR permission='Added') AND (f_name like'%$name%' or f_name like'%$name%')";
$run = mysqli_query($db,$query1);
while($row=mysqli_fetch_array($run))
{
?>
<tr><th> <h3 class="text-center font-weight-bold "><?php
echo "<a href='Admin/detail.php?s_id={$row['s_id']}'>{$row['f_name']}{$row['l_name']}</a>"; ?> 
<?php echo "specialist of" ; ?>   <?php echo $row["specialist"]."</br>";?></h3></th></tr>
<?php
}
// echo "No results found";
}
?>
</table>
</body>
</html>