What is the best function to run my strings through to ensure that MySQL injection is impossible?
Also, will it require running it through another function on the way out to make it display correctly?
See also
Are Parameters really enough to prevent Sql injections?
C# Parameterized Query MySQL within
clause
Can I protect against SQL Injection by escaping single-quote and surrounding user input with single-quotes?