"; $servername = "logisys.cluster-cv9maxyrxjgg.ap-south-1.rds.amazonaws.com"; $username = "admin"; $password = "Logisys2104"; $dbname = "logisys3_sikkim"; $conn = new mysqli($servername, $username, $password, $dbname); for($i = 0; $i < $dataSize; $i++) { $information=explode('=',$decryptValues[$i]); $response[$information[0]] = $information[1]; } if($response['order_status'] === "Success") { $productinfo = $response['merchant_param3']; $txnid = $response['tracking_id']; $amt = $response['amount']; $firstname = 'HDFC'; //Click here to take a PrintOut $html = ""; echo "

Thank You. Your order status is success

"; echo "

Your Transaction ID for this transaction is ".$txnid.".

"; echo "

We have received a payment of Rs. " .$amt."

"; $html="
"; echo $html; $html = ""; $update="update studadm set FPAYMENTREMARKS='{$txnid}', FPAYMENTSTATUS='success', fpaymentdate=now(), FPAYMENTTYPE = '{$firstname}' where fappno = '{$productinfo}'"; //var_dump($update); $result=$conn->query($update); } else if($response['order_status']==="Aborted") { echo "
Thank you for shopping with us.We will keep you posted regarding the status of your order through e-mail"; } else if($response['order_status']==="Failure") { echo "
Thank you for shopping with us.However,the transaction has been declined."; } else { echo "
Security Error. Illegal access detected"; } echo "

"; echo ""; // for($i = 0; $i < $dataSize; $i++) // { // $information=explode('=',$decryptValues[$i]); // echo ''; // } echo "
'.$information[0].''.urldecode($information[1]).'

"; echo ""; ?>