lundi 13 février 2017

php PayPal mysql intergration

Vote count: 0

I am doing a project for my coursework and I keep getting the error :

Notice: Undefined index: tx in /storage/h3/495/770495/public_html/success.php on line 12

Notice: Undefined index: amt in /storage/h3/495/770495/public_html/success.php on line 13

Notice: Undefined index: cc in /storage/h3/495/770495/public_html/success.php on line 14

Notice: Undefined index: st in /storage/h3/495/770495/public_html/success.php on line 15

Can someone please explain to me the cause of the error and how to fix it.

Thanks, Danyaal.

query("SELECT * FROM payments WHERE txn_id = '".$txn_id."'");
    if($paymentResult->num_rows > 0){
                //payment information
        $paymentRow = $paymentResult->fetch_assoc();
        $payment_id = $paymentRow['payment_id'];
                //order items details
                $orderItemResult = $db->query("SELECT, i.quantity, i.gross_amount FROM order_items as i LEFT JOIN products as p ON = i.item_number WHERE payment_id = '".$payment_id."'");

Payment ID:

Payment Gross:

num_rows > 0){ ?>

Order Items

fetch_assoc()){ $i++; ?>
# Product Name Quantity Gross Amount


Payment Gross:

Back to products
asked 26 secs ago

Let's block ads! (Why?)

php PayPal mysql intergration

Aucun commentaire:

Enregistrer un commentaire