News Feed
Jobs Feed
Sections




News Archive
Ivo Jansch's Blog:
Don't use addslashes for database escapes
December 03, 2007 @ 15:27:00

Ivo Jansch has a reminder for developers when they're putting user data into their databases - don't use addslashes.

[Addslashes] is not the best way to escape data. The most important reason is security. addslashes can lure you into a false sense of security. As Chris Shiflett points out, there are situations that addslashes doesn't escape. Use mysql_real_escape_string instead.

Ivo also talks about the advantages of using the right function and suggests another even more secure way too - PDO.

0 comments voice your opinion now!
addslashes mysqlrealescapestring user input pdo addslashes mysqlrealescapestring user input pdo


blog comments powered by Disqus

Similar Posts

Atlanta PHP Users Group: December Meeting - 1st @ 7pm

Ilia Alshanetsky\'s Blog: php|tek 2006

Ivo Jansch's Blog: Don’t use addslashes for database escapes

Keith Casey's Blog: The First Rule for Software Development

Job Posting: agámi Systems, Inc Seeks UI Engineer (Sunnyvale, CA)


Community Events









Don't see your event here?
Let us know!


object opinion zendframework2 phpunit community api example podcast tool database framework release testing introduction language code interview development unittest composer

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework