Jump to content

Sanitizing strings


Asheeown

Recommended Posts

Ok, so my site was hacked last night, WHOOPIEE.  He did it by SQL injections which I am pissed about because I am using mysql_escape_string on EVERY query that I import.

 

The development server I was testing this site on before I put it live doesn't tolerate any ' or other types of quotes used in strings and just reports the query back false.

 

The version of PHP on the live server is 4.3.11 and on my development server it's 5.2.4.  What new code should I use to prevent and further SQL injections?

Link to comment
https://forums.phpfreaks.com/topic/107246-sanitizing-strings/
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.