String adapter
Hi,
I have an arbitrary string, say fooString, digited by the user (so ti can contain ", /, \ and everything else comes in his mind..), and i must insert it in a mysql query. The problem arose with the characters " and \...
I tried to use the methods fooString.replaceAll("\\","\\\\") and fooString.replaceAll("\"","\\\""); but it does nothing... no changes in fooString!
Can anyone help me?
Moreover, Does anyone know a method to "adapt" a string autmatically?
Thanks a lot.

