in reply to replacing carriage return line feed usinf chr()
$sql = "insert into test (field1) value 'aaaaaaa\r\nbbbb'"; [download]
-Matt