<?php
    include'connection.php';
    $opCode=$_GET['opCode'];
    $api1=$_GET['api1'];
    $api2=$_GET['api2'];
    
    $update="UPDATE operator SET UseAPI='$api1', UseAPI2='$api2' WHERE OwnApiCode='$opCode'";
    if(mysqli_query($con,$update))
    {
        echo "<div class='msg-div'>
		        <form method='post'>
				    <h3>API Set Successfully !</h3><br>
					<i class='fa fa-check-circle' aria-hidden='true' id='okIcon'></i><br><br>
					<button type='submit' class='btnPopup'>OK</button><br><br>
				</form>
			</div>";
    }
    else
    {
        echo "<div class='msg-div'>
			        <form method='post'>
				        <h3>Something !</h3><br>
				        <i class='fa fa-ban' aria-hidden='true' id='NotokIcon'></i><br><br>
				        <button type='submit' class='btnPopup'>OK</button><br><br>
			        </form>
		        </div>";
    }
?>