55ok

Mini

Direktori : /home/u307599615/domains/makeoverbyaaliyabarber.com/public_html/admin/
Upload File :
Current File : /home/u307599615/domains/makeoverbyaaliyabarber.com/public_html/admin/packages.php

<?php
include('connection.inc.php');
include('sidebar.inc.php');
include('header.inc.php');

$sql = "SELECT * FROM package";
$quary = mysqli_query($con, $sql) or die("Error");

?>
<table class="table">
    <a href="./add_package.php"><button class="btn btn-primary" name="">Add-Packages</button></a>
    <thead>
        <tr>
            <th scope="col">Id</th>
            <th scope="col">Package</th>
            <th scope="col">title</th>
            <th scope="col">MAC</th>
            <th scope="col">MAC Price</th>
            <th scope="col">Hd/Airbrush</th>
            <th scope="col">Hd/Airbrush Price</th>
            <th scope="col">Celebrity</th>
            <th scope="col">Celebrity Price</th>
            <th scope="col">Celebrity Silicon</th>
            <th scope="col">Celebrity Silicon Price</th>
            <th scope="col">Message</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><?php echo $row['Package']; ?></td>
                    <td><?php echo $row['title']; ?></td>
                    <td><?php echo $row['mac']; ?></td>
                    <td><?php echo $row['mac_price']; ?></td>
                    <td><?php echo $row['hd_airbrush']; ?></td>
                    <td><?php echo $row['hd_airbrush_price']; ?></td>
                    <td><?php echo $row['Celebrity']; ?></td>
                    <td><?php echo $row['Celebrity_price']; ?></td>
                    <td><?php echo $row['Celebrity_silicon']; ?></td>
                    <td><?php echo $row['Celebrity_silicon_price']; ?></td>
                    <td><?php echo $row['message']; ?></td>
                    <td><a href="./edit_package.php?id=<?php echo $row['id']; ?>" class="text-decoration-none text-dark">Edit</a>&nbsp;&nbsp;<a href="./delete_packages.php?id=<?php echo $row['id']; ?>" class="text-decoration-none text-dark">Delete</a></td>
                </tr>
        <?php
            }
        }
        ?>

    </tbody>
</table>
<?php
include('footer.inc.php');
?>

Zerion Mini 1.0