Use mysql_real_escape_string() instead mysqli_real_escape_string. For more information CLICK HERE
mysqli_real_escape_string ($link ,$source ) // $link is your connection variable
Related Posts:
- SQL Error wp_commentmeta – incorrect table definition
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- Case statement in MySQL
- How do I restore a dump file from mysqldump?
- Error Code: 2013. Lost connection to MySQL server during query
- how to drop partition without dropping data in MySQL?
- 1052: Column ‘id’ in field list is ambiguous
- 1052: Column ‘id’ in field list is ambiguous
- difference between primary key and unique key
- Creating a search form in PHP to search a database?
- MySQL equivalent of DECODE function in Oracle
- How to do a batch insert in MySQL
- Error: Duplicate entry ‘0’ for key ‘PRIMARY’
- Undefined offset: 0 in > […] /wp-includes/capabilities.php on line 1067
- Resetting comment count
- Getting wrong relationship value in $args in wp_Query?
- How to Join two tables from separate databases within WordPress
- The style.css stylesheet doesn’t contain a valid theme header
- Would manually deleting the dumping data fix a “#1062 – Duplicate entry ‘1’ for key ‘PRIMARY'” phpMyAdmin error?
- Theme Activation, Create Database Tables
- WordPress Backup
- Error establishing a database connection – with Debug Data
- How to execute mulitple statement SQL queries using $wpdb->query?
- I want to run different WordPress websites under the same database
- Delete duplicate rows from wordpress database where a column is duplicate in phpmyadmin
- Query WordPress database by registered date and role
- Delete database tables on theme uninstall?
- Size article thumbnails and retrieve them directly from database
- wpdb_prepare with multiple or condition
- PHP Parse error: syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) on line 230 [closed]
- How do I find which articles are missing a featured image in The WordPress database?
- wp theme.. Could not create directory
- Should a child theme share the same theme options row as the parent, or should it have it’s own options row?
- Are theme .php files stored in the database?
- Console error, even if everything is working?
- WordPress and MySQL: how to transfer Meta_key and Meta_Value from one post_id to another
- How do I get the posts within a certain year/date(with sql query)?
- Database Tables Lost Indexes? How to Recover?
- Moving test theme to live site without mySQL error – how? [closed]
- Posts and Pages not showing on admin, but showing in theme
- Error establishing database connection – high traffic?
- Fatal error with a theme
- Create table from array with prepare
- 1 Database for multiple WordPress themes
- Migrating to WordPress Recipe Plugin and Some SQL Issues
- Getting 503 on various files
- Trouble Migrating all data blog from WordPress.com to WordPress.org
- How to fix database error duplicate entry
- What do these phpMyAdmin errors mean on my WordPress databaes?
- after wordpress update to 3.5+ i get many errors in plugin wpdb::prepare()
- Remove problem PHP code entered into footer via Theme
- How to transform a custom made static HTML website to a WordPress website [closed]
- Twenty Seventeen search error
- WordPress suddenly creating theme errors
- Why this query is not showing any result on wordpresss home page?
- Using the same database on another Subdomain
- Copying post thumbnail to custom field
- Using AND and bracket grouping in SQL not working
- SQL query to set posts in bulk based on the post content
- How can I remove all traces of a theme?
- Valid SQL query not returning results
- WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version [closed]
- Error when installing theme – “failed to open stream: No such file or directory in…”
- different theme in one website
- Functions.php error – when trying to change the theme
- My blog suddenly can’t find my stylesheet?
- Fix warning: Missing argument
- I’ve got a theme I can’t update and won’t let go
- How to fix Scrape key check failed on WordPress VPS?
- Why does an ad page open when I browse my websites’s wp-admin page?
- Trying to revive an old wordpress site, but newer versions of wordpress install a different db structure
- DB prefix not updating
- Switching among theme customizations
- Performing CRUD operations on front end in wordpress
- I wanted to Know that how can I give ingore to 0000-00-00 in my config file
- PHP Warning: mysqli_query(): after updating my websites php from 5.6 to 7.2
- SQL database import #1046 error
- Bulk find & replace on WordPress posts/pages (minus image paths)
- Problem: Fatal error worldpress theme
- How to create index (sql) to a meta_key?
- Custom CSS is overwritten by WordPress?
- The MySQL Connection could not be established., before it was joomla but i have change it into worpress
- Hang Up Followed By Can’t select database
- Uploaded WordPress theme not finding pages and css
- can’t delete a row from post_meta table
- Copy from wordpress for dev gives different output in browser
- two wordpress sites, two themes, one database, same content
- WordPress Theme Migration Local to Live Assets Not Loading
- Costum Theme template directoy url problem
- Print output of Table Creation
- Diagnosing a connection reset problem
- Migrated to Namecheap, now Trouble with Database & wp-config [closed]
- export individual posts to text files or a single csv file
- SQL query : Select a thumbnail for a media
- 2 WP websites same content different themes
- “Parse error: syntax error, unexpected” and the WordPress Theme Editor no longer working!
- SQL Query to get post_id from wp_posts and and meta_key(s) from wp_postmeta
- Execute multiple PHP Snippets causes error?