[mod_python] addSlashes() in python, sql cgi question

Irene Ponti ireneponti at yahoo.com
Thu Jun 5 10:51:29 EST 2003

Hi to all

I have to put into a SQL database the content of some
variables coming from an Internet form.

If this variables have some caracters as ' or "
inside, the sql server return an error because the
query is not in correct sintax.

Now in php exist a standard function that add slashes
in front of ' or " in a variable and another that
remove slashes.

Is there in python a function like this?

Thank you.

Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).

More information about the Mod_python mailing list