Godaddy are recording the following error now:
[13-Feb-2018 21:13:01 UTC] 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);