55ok
| Direktori : /home/u307599615/domains/makeoverbyaaliyabarber.com/public_html/admin/ |
| Current File : /home/u307599615/domains/makeoverbyaaliyabarber.com/public_html/admin/Combo.php |
<?php
include('connection.inc.php');
include('sidebar.inc.php');
include('header.inc.php');
$sql = "SELECT * FROM gallery";
$quary = mysqli_query($con, $sql) or die("Error");
?>
<table class="table">
<a href="./add_combo.php"><button class="btn btn-primary" name="">Add-Gallery</button></a>
<thead>
<tr>
<th scope="col">Id</th>
<th scope="col">Product Image</th>
</tr>
</thead>
<tbody>
<?php
$Serial = 0;
if (mysqli_num_rows($quary) > 0) {
while ($row = mysqli_fetch_assoc($quary)) {
$Serial += 1;
?>
<tr>
<td><?php echo $Serial; ?></td>
<td><img src="./photos/<?php echo $row['image']; ?>" alt="" width="80px"></td>
<td><a href="./edit_combo.php?id=<?php echo $row['id']; ?>" class="text-decoration-none text-dark">Edit</a> <a href="./delete_combo.php?id=<?php echo $row['id']; ?>&& image=<?php echo $row['image']; ?>" class="text-decoration-none text-dark">Delete</a></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<?php
include('footer.inc.php');
?>