You have to double up your \ since that's an escape character for MySQL.
There's also a mysql_real_escape_string function in MySQL that you can wrap
around your input to escape stuff for you.

So you can do this and it'll work:

INSERT INTO foo (foo)
VALUES ('\\this\\will\\work')

Also can you elaborate on the "input tag" where you see this happening? Not
clear on what you mean there.

Thanks.

-- 
Matthew Woodward
[email protected]
http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

-- 
official tag/function reference: http://openbd.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to