File "uploadTracking.php"
Full Path: /home/krishnamexports/public_html/panel/fckeditor/_samples/cfm/uploadTracking.php
File size: 894 bytes
MIME-type: text/x-php; charset=us-ascii
Charset: utf-8
<?php
session_start();
include('../../config/database.php');
$orderId = $_POST['orderId'];
$receiptid = $_POST['receiptid'];
$logistic_partner = mysqli_real_escape_string($cn,$_POST['logistic_partner']);
$packet = $_POST['packet'];
$logistic_remark = mysqli_real_escape_string($cn,$_POST['remark']);
if(!empty($orderId))
{
mysqli_query($cn,"update `tbl_order` SET `tracking_status`=1, `logistic_partner`='$logistic_partner', `logistic_remark`='$logistic_remark', `packet`='".$packet."' where `order_id`='$orderId'");
}
else
{
mysqli_query($cn,"update `tbl_order` SET `tracking_status`=1, `logistic_partner`='$logistic_partner', `logistic_remark`='$logistic_remark', `packet`='".$packet."' where `receipt_id`='$receiptid'");
}
$arr = array("status"=>1, 'SuccessMsg'=>"Logistic Detials update SuccessFully");
echo json_encode($arr);
?>