Escaping SQLite

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have been using pg_escape_string from the php5-pgsql library even
though I am using SQLite. This is because I've found no equivalent for
SQLite. Can someone tell me how to replace this with a series of
functions (likely preg_replace()) so that I no longer need the
dependency on php5-pgsql?

Or, does anyone know where I can look at the C source for
pg_escape_string() so that I can try to duplicate it in PHP code?

Re: Escaping SQLite


Quoted text here. Click to load it

What about sqlite_escape_string()? Or PDO?


Site Timeline