Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting into a text field

Status
Not open for further replies.

russ3ell

Technical User
Sep 6, 2001
4
GB
Hi there

I'm using perl DBI and placeholders with a syntax like:
$dbh->do("INSERT INTO foo VALUES (?,?)",undef,@fields)
This loads up the data. However, one of my fields has newlines in it. When this is printed out the newlines are display as '\n' and not as new lines. Do I need to escape them or convert them from '\n' to '\r' or something else?
 
Idiot that I am, my problem was with extracting the data after. Using mysql, I didn't have the -r option set. Please close this thread - or possibly delete it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top