-
Notifications
You must be signed in to change notification settings - Fork 0
/
feedback.php
43 lines (42 loc) · 980 Bytes
/
feedback.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
<script>
function delFeedback(id)
{
if(confirm("You want to delete this Feedback ?"))
{
window.location.href='delete_feedback.php?id='+id;
}
}
</script>
<table class="table table-striped table-hover">
<h1>Feedback</h1><hr>
<tr>
<th>Sr No</th>
<th>Name</th>
<th>Email</th>
<th>Mobile</th>
<th>Message</th>
<th>Delete</th>
</tr>
<?php
$i=1;
$sql=mysqli_query($con,"select * from feedback");
while($res=mysqli_fetch_assoc($sql))
{
$id=$res['id'];
$name=$res['name'];
$email=$res['email'];
$mobile =$res['mobile'];
$message=$res['message'];
?>
<tr>
<td><?php echo $i;$i++; ?></td>
<td><?php echo $res['name']; ?></td>
<td><?php echo $res['email']; ?></td>
<td><?php echo $res['mobile']; ?></td>
<td><?php echo $res['message']; ?></td>
<td><a href="#"onclick="delFeedback('<?php echo $id; ?>')"><span class="glyphicon glyphicon-remove"style='color:red'></span></a></td>
</tr>
<?php
}
?>
</table>