Sender page
$.ajax({
type : "POST", // type of method
url : "1.php", // your page
data : { PID : $PID, PQ : $ProductNeed }, // passing the values
success: function(res) { }
});
Receiver Page
if (isset($_POST['PID'])) {
$result = mysqli_query($conn, "call herestoredProcedure('".$_SESSION['USERid'])."','".$_POST['PQ']."','".$_POST['PID']."')";
mysqli_close($conn);
}
_POST Not Receiving data of PID, PQ Indexer. Please help me to solve it.
print_r($_POST);$PIDand$ProductNeedvariables at the client side code. what doesconsole.log($PID)andconsole.log($ProductNeed)show in your browser ?print_r($_POST)orprint_r($result)orecho mysqli_error($conn)and observe the output in your browser's network debugger? Does it contain what you expect?