Top "Mysql-real-escape-string" questions

A PHP function that escapes special characters in a string for use in an SQL statement.

Alternative to mysql_real_escape_string without connecting to DB

I'd like to have a function behaving as mysql_real_escape_string without connecting to database as at times I …

php mysql mysql-real-escape-string
Should I use mysqli_real_escape string() or mysql_real_escape_string() for form data?

Possible Duplicate: mysql_escape_string VS mysql_real_escape_string I need to get company_name (given by user through …

php mysql mysqli mysql-real-escape-string
mysql_escape_string VS mysql_real_escape_string

So this is something we all should know about, and played on my mind when I first seen it.. I …

php escaping mysql-real-escape-string mysql-escape-string
PHP mysql_real_escape_string() -> stripslashes() leaving multiple slashes

I'm having issues escaping/stripping strings with PHP/MySQL - there always seems to be redundant slashes. Let's take the …

php mysql-real-escape-string stripslashes
Decoding mysql_real_escape_string() for outputting HTML

I'm trying to protect myself from sql injection and am using: mysql_real_escape_string($string); When posting HTML it …

php sql-injection html-encode mysql-real-escape-string
How to use mysql_real_escape_string function in PHP

So in this program I'm writing, I actually grab a SQL query from the user using a form. I then …

php mysql mysql-real-escape-string
Why is PDO better for escaping MySQL queries/querystrings than mysql_real_escape_string?

I've been told that I'd be better using PDO for MySQL escaping, rather than mysql_real_escape_string. Maybe I'm …

php pdo escaping mysql-real-escape-string
Escaping a string with quotes in Laravel

I would like to insert the content of an excel file into my database. I simply use a raw query …

php laravel escaping mysql-real-escape-string
PHP mysql_real_escape_string returns empty string

I'm trying to work a bit of security and sanitization into my databases application (for a class). to start off …

php mysql database mysql-real-escape-string
mysql_real_escape_string() leaving slashes in MySQL

I just moved to a new hosting company and now whenever a string gets escaped using: mysql_real_escape_string($…

php mysql mysql-real-escape-string