Good day to everyone, I am currently facing a problem whereby I want to send selected row of data to either Payment Module or Delivery Module based on the variable selected_option. If the user selected Refund, this row of data which has been APPROVE will be sent to Payment Module for further processing, vise versa. Below are the code I am currently at.
if(isset($_POST['btnApprove']))
{
$selectedItem = $_POST['selectitemradio'];
echo $selectedItem;
$sql = "UPDATE `returntable` SET `return_status`='APPROVED' WHERE return_id= '$selectedItem'";
if(!mysqli_query($db,$sql)){
echo "failed";
}else {
if (`return_option` == 'Refund')
{
echo 'Bring Selected Row Of Data To Payment Module';
} elseif (`return_option` == 'Replacement') {
echo 'Bring Selected Row of Data To Delivery Module';
}
// header("refresh: 0.0000000000000000000000001");
}
}