-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexpAction.php
46 lines (44 loc) · 1.53 KB
/
expAction.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
<?php
include 'dbconnection.php';
$selected_val = $_POST['exp'];
if (isset($_GET['exp'])){$keyword =$_GET['exp']; }
$query = "Select * from guide where exp = '".selected_val."' ";
$result = $conn->query($query);
?>
<html>
<head>
<meta charset="UTF-8">
<title>Expirience Viewer</title>
</head>
<body>
<div align="center">
<table border="0">
<thead>
<tr>
<th>Name : </th>
<th>Cost : </th>
<th>Expirience : </th>
<th>Rating : </th>
</tr>
</thead>
<tbody>
<?php
if ($result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
?>
<tr>
<td><input type="text" name="name" value="<?php echo $row['name']; ?>"></td>
<td><input type="text" name="cost" value="<?php echo $row['cost']; ?>"></td>
<td><input type="text" name="expiriencce" value="<?php echo $row['exp']; ?>" ></td>
<td><input type="text" name="rating" value="<?php echo $row['rating']; ?>" ></td>
<?php
}
}
$conn->close();
?>
</tbody>
</table>
</div>
</body>
</html>
?>