D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
shubmkcj
/
urbane.createerp.com
/
Filename :
update_deposite_payment.php
back
Copy
<?php ob_start(); session_start(); include 'config.php'; $id = $_GET['id']; $payment_mode = $_POST['payment_mode']; $deposite_amount = $_POST['deposite_amount']; $reference = addslashes(stripslashes($_POST['reference'])); $sql = "UPDATE payment SET amount = '$deposite_amount', mode='$payment_mode',reference='$reference' WHERE id='$id'"; if ($conn->query($sql) === TRUE) { echo '<script>localStorage.setItem("UpdateDepositePayment", "true")</script>'; echo '<script>location.replace("contact.php")</script>'; } else { echo '<script>alert("Error !")</script>'; } ?>