Skip to main content

All Questions

0 votes
2 answers
4k views

mysql_real_escape_string() function not working in wordpress WP_Query?

We have tried this way. But it is not working. please any one tell alternative method in wordpress $wpdb->query("UPDATE ".$wpdb->prefix."recommend_bets SET `title`='".mysqli_real_escape_string($...
Arun Kumar's user avatar
  • 1,667
3 votes
1 answer
2k views

Sanitizing URLs being inserted into a WordPress MySQL database

I am writing a plugin for Wordpress, where I have my own custom table to store the relevant data being pulled from a remote API. One of the elements I need to store is a URL, which is a TEXT field ...
user avatar
3 votes
2 answers
2k views

mysql_real_escape_string does not escape "

In PHP, I am escaping characters before insert in a MySQL database using mysql_real_escape_string $array_to_insert = array_map('mysql_real_escape_string', $my_arr); $mysql->setTbl("mytable"); $id =...
Usering's user avatar
  • 143