File manager - Edit - /home/custbahd/irungikitchen.com/admin1/search/delete/index.php
Back
<?php session_start(); include_once('../../db/connection.php'); if(isset($_GET['id'])){ $sql = "DELETE FROM shop WHERE id = '".$_GET['id']."'"; //use for MySQLi OOP if($conn->query($sql)){ $_SESSION['success'] = 'Item deleted successfully'; } //////////////// //use for MySQLi Procedural // if(mysqli_query($conn, $sql)){ // $_SESSION['success'] = 'Member deleted successfully'; // } ///////////////// else{ $_SESSION['error'] = 'Something went wrong in deleting item'; } } else{ $_SESSION['error'] = 'Select item to delete first'; } header('location: ../../'); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 2.09 |
proxy
|
phpinfo
|
Settings