function to sanitize input to Mysql database

Questionsfunction to sanitize input to Mysql database
sethbeckerman5 Staff asked 14 years ago

I am trying to put a general purpose function together that will sanitize input to a Mysql database. So far this is what I have:

If i understood the definition of . This is set by the php server to automatically escape characters instead of needing to use .

Have I used and correctly together and is there anything else I could add to increase the sanitization.

Thanks


View on Stack Overflow