Server IP : 162.240.98.243 / Your IP : 18.217.206.112 Web Server : Apache System : Linux server.bti.yaw.mybluehostin.me 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : btiyawmy ( 1003) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/btiyawmy/public_html/login.easenup.in/ |
Upload File : |
<?php $connect = new PDO("mysql:host=localhost;dbname=easenuph_hand2secure", "easenuph", "@#admin@#"); if(isset($_GET['deleteId'])){ $id= $_GET['deleteId']; delete_data($connect, $id); } // delete data query function delete_data($connect, $id){ $query="DELETE from tbl_sample WHERE id=$id"; $exec= mysqli_query($connect,$query); if($exec){ echo "Data was deleted successfully"; }else{ $msg= "Error: " . $query . "<br>" . mysqli_error($connect); echo $msg; } } ?>