Jump to content

Escape a SQL query


Recommended Posts

Hey. I have a bunch of SQL queries the server performs when saving data. Problem I'm having is some data might have a character like ' or " in the query, so the query will fail. I also don't want to use the executeSQLQuery's escaping system, those question mark things.

What characters are actually being escaped in these SQL queries? I'd like a function for it, but I don't know which characters to escape ;)



Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...