-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathabc.php
44 lines (27 loc) · 783 Bytes
/
abc.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
<?php
//sleep(3);
require_once('sql.php');
$name = $_REQUEST['name'];
$con = mysqli_connect('localhost', 'root', '', 'healing-infirmary');
$sql = "select * from doctor_reg where address like '%{$name}%'";
$result = mysqli_query($con, $sql);
$response = "<table border=1>
<tr>
<td>Title</td>
<td>Name</td>
<td>Email</td>
<td> Specialist </td>
<td> Address </td>
</tr>";
while ($row = mysqli_fetch_assoc($result)) {
$response .= "<tr>
<td>{$row['title']}</td>
<td>{$row['name']}</td>
<td>{$row['email']}</td>
<td>{$row['specialist']}</td>
<td>{$row['address']}</td>
</tr>";
}
$response .= "</table>";
echo $response;
?>