Inserting Strings Into a Database

Put your problem here if it does not fit any of the other categories.

Inserting Strings Into a Database

Postby krammark23 » Thu Aug 13, 2009 6:19 am

Hello,

This is probably a simple problem, but I'm stumped. I'm trying to take a String and insert it into my database, but this String contains items such as ", ', ) and spaces. I've tried doing a quick String.replace("'", "\\\'") and then adding "'" to the start and end of each string, but it's still not working.

Any help is appreciated.

--Mark
krammark23
Freshman
Freshman
 
Posts: 2
Joined: Thu Aug 13, 2009 6:13 am

Top

Postby krammark23 » Thu Aug 13, 2009 6:39 am

Nevermind that, I think I found my answer.

http://www.webdeveloper.com/forum/showt ... hp?t=81753

Cheers.
krammark23
Freshman
Freshman
 
Posts: 2
Joined: Thu Aug 13, 2009 6:13 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 31 guests