AlkantarClanX12

Your IP : 216.73.216.14


Current Path : /home/xdlcxzbz/comfortchauffer.com/
Upload File :
Current File : /home/xdlcxzbz/comfortchauffer.com/delete-invoice.php

<?php
session_start();

if (!isset($_SESSION['userID'])) {
    header("Location: sign-in.php");
    exit();
}
require_once "SqlConnection/MySqlConnection.php";
$invoiceNumber = $_POST['invoiceNumber'];
$sql = "Delete from invoicestable where invoiceNumber='".$invoiceNumber."';Delete from invoices where invoiceNumber='".$invoiceNumber."'";
$result = mysqli_multi_query($conn,$sql);
if($result){
    header("Location: invoicesData.php");
}
else{
    echo "Error while deleting customer";
}
?>