0

Mysqli_real_escape_string

why we use Mysqli_real_escape_string?

12th Jan 2017, 1:39 PM
Umer Waleed Hashmi
Umer Waleed Hashmi - avatar
2 Réponses
+ 2
It's the lowest function used to provide sql injection and those kind of thing. But it's an outdated and out of use function. You'd better use prepared statements ;)
12th Jan 2017, 1:48 PM
Guillaume BONHOMMEAU
Guillaume BONHOMMEAU - avatar
+ 1
Also whitelisting with regex, if someone is trying to inject you you need to block their traffic
12th Jan 2017, 2:55 PM
Louis Milotte
Louis Milotte - avatar