Jump to content

Security ( SQL injections )


bolt

Recommended Posts

Hello,

 

I have a question about SQL injections. What functions should I use before inserting data into a database or before using variables in SQl sentence.

I know two functions:

-mysql_real_escape_string

-addslashes

what is the difference between these two functions? Which function should I use before inserting data in database or using variables in SQl query?

 

Link to comment
https://forums.phpfreaks.com/topic/131536-security-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.