/
home
/
u671453320
/
domains
/
gbmelevators.in
/
public_html
/
admin
/
Upload FileeE
HOME
<?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>