WordPress Update Query not working, no errors Help

Hi There,

Just a quick query I have this in my code:

 $webhookID = $webhook->getID();
                    $agreement_id = $agreement->getID();


                    $wpdb->show_errors( true );

                    $wpdb->update( 'wpwx_pdetails', array( 'webhook_id' => $webhookID, 'agreement_id' => $agreement_id ), array( 'token'=> $token ), 
                      array( 
                        '%s', // value1
                        '%s'  // value2
                      ), 
                        array( '%s') 
                      );

All the variables are getting their respected values, however, when the update query is run, no columns are updated. The values are gained via a PayPal API and are returned after a successful purchase.

I have errors turned on and no errors are returned. Can anyone shed any light on this as its driving me around the bend.

Any help would be great.

Thanks

Scrap that, I’ve managed to solve the problem. I’d parsed the URL at the start and added a space at the front of the token.

2 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.