Jump to content

php sql injections


dotkpay

Recommended Posts

Hello,

I have been using the preg_match() to throw out invalid form characters and then both mysql_real_escape_string() and stripslashes() to escape data variables before using them with mysql.

But how about messages from a text area for example on a contact form. You cant limit the characters for the user.

Is escaping variables good enough to eliminate sql injections from user input?

Link to comment
https://forums.phpfreaks.com/topic/247587-php-sql-injections/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.