-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin_reservefilter.php
22 lines (17 loc) · 1.26 KB
/
admin_reservefilter.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php include('includes/dbconn.php');
$stat = $_POST['filter'];
$sql= ("SELECT tblcnp.*,tblorders.*
FROM tblorders LEFT JOIN
tblcnp ON tblorders.cnpoid = tblcnp.id WHERE tblorders.ostatus = '$stat' order by tblorders.id LIMIT 0,30") or die (mysqli_error());
$result=mysqli_query($con, $sql);
if(mysqli_num_rows($result)>0){
while($row = mysqli_fetch_assoc($result)){?>
<tr class="success" style="cursor:pointer;">
<td style="text-align:center;"><a href="admin_reject_completed.php?id=<?php echo $row['id']?>" class="btn btn-default"><i class="glyphicon glyphicon-trash"></i> Delete</a></td>
<td style="text-align:center;"><?php echo $row['cname'];?></td>
<td style="text-align:center;"><?php echo $row['name'];?></td>
<td style="text-align:center;"><?php echo $row['address'];?></td>
<td style="text-align:center;"><?php echo $row['contact'];?></td>
<td style="text-align:center;"><?php echo $row['timestamp'];?></td>
</tr>
<?php }}else {echo'<strong style="color:red">No '.$stat.' record from database</strong>';}?>