<?php
    $ApiUsrId   = $_POST['ApiUsrId'];
	$ApiToken   = $_POST['ApiToken'];
	$Api_IP     = $_POST['Api_IP'];
	$RchReqUrl  = $_POST['RchReqUrl'];
	$chkRechUrl = $_POST['chkRechUrl'];
	$cb_url     = $_POST['cb_url'];
	$ReqFormat  = $_POST['ReqFormat'];
	
	$USERID   = $_POST['USERID'];
	$TOKEN    = $_POST['TOKEN'];
	$ACCOUNT  = $_POST['ACCOUNT'];
	$AMOUNT   = $_POST['AMOUNT'];
	$OPCODE   = $_POST['OPCODE'];
	$ORDERID  = $_POST['ORDERID'];
	$STV      = $_POST['STV'];
	$CIRCLE   = $_POST['CIRCLE'];
	$ROFFER   = $_POST['ROFFER'];
	$LAPUGROUP = $_POST['LAPUGROUP'];
	$FORMAT   = $_POST['FORMAT'];
	
	$STATS    = $_POST['STATS'];
	$MSG      = $_POST['MSG'];
	$ERRMSG   = $_POST['ERRMSG'];
	$ERRCODE  = $_POST['ERRCODE'];
	$TXNID    = $_POST['TXNID'];
	$PARTNRID = $_POST['PARTNRID'];
	$BAL      = $_POST['BAL'];
	$LAPU     = $_POST['LAPU'];
	$ROFR     = $_POST['ROFR'];
	$ROAM     = $_POST['ROAM'];
		
	$quUpdate="UPDATE api SET ApiUsrId='$ApiUsrId', ApiToken='$ApiToken', Api_IP='$Api_IP', RchReqUrl='$RchReqUrl', chkRechUrl='$chkRechUrl', cb_url='$cb_url', ReqFormat='$ReqFormat', 
	USERID='$USERID', TOKEN='$TOKEN',  ACCOUNT='$ACCOUNT', AMOUNT='$AMOUNT', OPCODE='$OPCODE', ORDERID='$ORDERID', STV='$STV', CIRCLE='$CIRCLE', ROFFER='$ROFFER', LAPUGROUP='$LAPUGROUP', 
	FORMAT='$FORMAT', STATS='$STATS', MSG='$MSG', ERRMSG='$ERRMSG', ERRCODE='$ERRCODE', TXNID='$TXNID', PARTNRID='$PARTNRID', BAL='$BAL', LAPU='$LAPU', ROFR='$ROFR', ROAM='$ROAM'
	WHERE Id='$api_id'";  
	
	if(mysqli_query($con,$quUpdate))
	{
		$respoStatus="SUCCESS";
		$msg="Api has been Updated successfully !";
		include'../LinkFile/respoPanel.php';
	}
	else
	{
	    $respoStatus="FAILED";
		$msg="Something Error !";
		include'../LinkFile/respoPanel.php';
    }

?>