Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: replacing carriage return line feed usinf chr()

by DrManhattan (Chaplain)
on Mar 14, 2003 at 15:20 UTC ( [id://243078]=note: print w/replies, xml ) Need Help??


in reply to replacing carriage return line feed usinf chr()

"\r" is interpolated as chr(13) and "\n" is chr(10). You should be able to do something like this:
$sql = "insert into test (field1) value 'aaaaaaa\r\nbbbb'";

-Matt

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://243078]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-18 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found