Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Securely handling characters into Mysql

Status
Not open for further replies.

thedaver

IS-IT--Management
Jul 12, 2001
2,741
US
I'm coding some PHP and MySQL work now. I have always just filtered out user input characters such as
" ' " ; - "

So as to avoid SQL injection. I now have a requirement to allow the apostrophe "'" to the input. Is it sufficient to use a PHP escaping command to allow the apostrophe? Just trying to be safe. Any external links on the topic would be welcome, my googling is coming up pretty poorly.

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top