-
Notifications
You must be signed in to change notification settings - Fork 0
/
newtry.php
47 lines (40 loc) · 1.31 KB
/
newtry.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
<!DOCTYPE html>
<html>
<head>
<title>
</title>
</head>
<body>
<table>
<?php
$service = $_POST["service"];
$con = mysqli_connect("localhost","root","");
mysqli_select_db($con,"city_need");
$query = "select * from serviceprovider where OcupationName = '$service'";
$result = mysqli_query($con,$query);
while($row = mysqli_fetch_array($result))
{
?>
<tr>
<th>Name</th>
<th><?php echo "".$row['UserName']; ?></th>
</tr>
<tr>
<th>Service</th>
<th><?php echo "".$row['OcupationName'];?></th>
</tr>
<tr>
<th>Email</th>
<th><?php echo "".$row['Email'];?></th>
</tr>
<tr>
<th>Contact</th>
<th><?php echo "".$row['Number'];?></th>
</tr>
<tr>
<th><button style="background-color:#333;color:white;">Request</button></th>
</tr>
<?php } ?>
</table>
</body>
</html>