That makes sense, But how do i update the order based on the IPN values. I have them in my IPN page like so
$item_name = $_POST['item_name'];
$item_number = $_POST['item_number'];
$payment_status = $_POST['payment_status'];
$payment_amount = $_POST['mc_gross'];
$payment_currency = $_POST['mc_currency'];
$txn_id = $_POST['txn_id'];
$receiver_email = $_POST['receiver_email'];
$payer_email = $_POST['payer_email'];
But how do i use say the $payment_status = $_POST['payment_status']; value to update my status value in my database, I'm not sure on the php code to update the table without a form submission.
Sorry i'm not much of a coder.