MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/sb_web/b2680/childrendccom.domain.com/client_access/
File Upload :
Current < : /hermes/sb_web/b2680/childrendccom.domain.com/client_access/cancelData.php

<?php
include("../includes/database.php");
include("../functions/functions.php");

if(isset($_POST["send_buttonID"])){
	
	$send_buttonID = mysqli_real_escape_string($con, $_POST["send_buttonID"]);
	$send_placedOn = mysqli_real_escape_string($con, $_POST["send_placedOn"]);
	$mod_string = "cancelled";
	
	$upd_Det_Query = "UPDATE customer_orders set approval_status = '$mod_string', order_date = '$send_placedOn' where order_id = '$send_buttonID'";
	$run_Det_Query = mysqli_query($con, $upd_Det_Query);
	
	if($run_Det_Query){
		echo "Order Has Been Cancelled Successfully!";
	}
	
}
?>