File "index-20260115212138.php"

Full Path: /home/custbahd/tourismfraternity.com/admin/inquiries/delete/index-20260115212138.php
File size: 419 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
	session_start();
	include_once('../../db/saucerer.php');

	if(isset($_GET['id'])){
		$sql = "UPDATE inquiries SET deleted = '1' WHERE id = '".$_GET['id']."'";

		//use for MySQLi OOP
		if($conn->query($sql)){
			$_SESSION['success'] = 'Inquiry deleted successfully';
		}
		
		else{
			$_SESSION['error'] = 'Something went wrong while deleting the inquiry!';
		}
	}

	header('location: ../');
?>