Server IP : 162.214.80.37 / Your IP : 216.73.216.1 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/skyispatudyog/sym/Users/0-imyrqtmy/zugadu/AdminPanel/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include"include/connection.php"?> <?php $i=$_GET['id']; $query = "SELECT * FROM model where id=$i"; $result = mysqli_query($db,$query); while ($delete = mysqli_fetch_array($result)) { $image = $delete['image']; $file= $image; unlink($file); } $a="delete from model where id=$i"; $qq=mysqli_query($db,$a); if ($qq) {?> <script type="text/javascript">alert("Data Deleted");</script> <?php echo"<script>location.href='viewmodel.php';</script>"; } else {?> <script type="text/javascript">alert("Data not Deleted");</script> <?php echo"<script>location.href='viewmodel.php';</script>"; } ?>