-
Notifications
You must be signed in to change notification settings - Fork 0
/
view-feedback.php
57 lines (44 loc) · 1.14 KB
/
view-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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
include("header.php");
include('connection.php');
?>
<!-- Testimonial Start -->
<div class="container-fluid py-5">
<div class="container py-5">
<div class="text-center mb-3 pb-3">
<h6 class="text-primary text-uppercase" style="letter-spacing: 5px;">User</h6>
<h1>Feedbacks</h1>
</div>
<div class="">
<table class="table">
<tr>
<th>#</th>
<th>Feedback</th>
<th>Rating</th>
<th>Date</th>
</tr>
<?php
$i=1;
$sel=mysqli_query($con,"SELECT * FROM `feedback` where user_id='$_SESSION[uid]' ORDER BY rating DESC");
//echo $sel;
while($row=mysqli_fetch_array($sel))
{
?>
<tr>
<td><?php echo $i;?></td>
<td><?php echo $row['review'] ?></td>
<td><?php echo $row['rating'] ?>/5</td>
<td><?php echo $row['date'] ?></td>
<tr>
<?php
$i++;
}
?>
</table>
</div>
</div>
</div>
<!-- Testimonial End -->
<?php
include("footer.php");
?>