hjkhhjhjol;io;ioio;ioiio;ioreererereio;;iooi;i;o;oii;o;ioo;iio;oi;
bnmbnmbnmnbmbio;io;irererereeo;o;oi;;oi;oioi;oi;oio;;oovn
/
home
/
u174022924
/
domains
/
rockonwheelstravels.in
/
public_html
/
rowpartner_api
/
Upload FileeE
HOME
<?php include 'lib/config.php'; if(isset($_REQUEST['update_wallet'])){ $id=$_REQUEST['vendor_id']; $amount=$_REQUEST['amount']; $txn_type=$_REQUEST['txn_type']; $txn_amount=$_REQUEST['txn_amount']; $action=$_REQUEST['action']; $query="UPDATE vendor_profile SET w_amount='$amount' WHERE vendor_id='$id'"; $res=mysqli_query($conn,$query); if($res){ $res=mysqli_query($conn,"INSERT INTO transaction_log (vendor_id,amount,txn_type,action,time) VALUES ('$id','$txn_amount','$txn_type','$action',now())"); $response['status']=True; $response['message']='Balance Added'; } else { $response['status']=False; $response['message']='SOmething WRONG'; } echo json_encode($response); } ?>