PHP Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in /home/vijayandclinton/public_html/wp-content/plugins/gift-re gistry/php/paypal_response.php on line 25
I've been having problems with Wordpress Ap "Gift Registry" talking to Paypal. The cart is working and processing payment at PayPal however the IPN error at PayPal stated "queued" then changed status to "retrying".
I'm now receiving the following message:
PHP Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in /home/vijayandclinton/public_html/wp-content/plugins/gift-registry/php/paypal_response.php on line 25
Below is the current code in paypal_response.php: Any thoughts on how to add the second parameter?
function gr_handle_paypal_response() {
global $wpdb;
wp_enqueue_script(‘paypal_response.js’, plugins_url(‘gift-registry/js/paypal_response.js’), array( ‘jquery’ ));
$customId = mysqli_real_escape_string($_GET[‘customId’]);
$q = “update {$wpdb->prefix}registry_order set
status = ‘RECEIVED’
where id = ‘$customId’ and status != ‘COMPLETED'”;
$wpdb->query($q);
Subject
Written By
Posted
PHP Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in /home/vijayandclinton/public_html/wp-content/plugins/gift-re gistry/php/paypal_response.php on line 25
February 13, 2018 04:20PM
February 13, 2018 10:20PM
February 13, 2018 11:27PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.