i am using ruby DBI to insert records into a mysql database.
dbh.do(“INSERT INTO sentences (id,text)
VALUES
(#{id},#{sentence})”)
the sentence is a pretty long and complex string having many special
characters. I cant seem to escape it out, i tried CGI and the %&&
delimiters, but i cant get it to work.