Subject | How to echo BLOB Text from firebird with LF+CR ? |
---|---|
Author | Hamacker |
Post date | 2003-12-17T19:34:17Z |
Hi everybody,
I wrote a memo text input from text area and write is OK, but when I
restore from PHP by :
ibase_blob_echo($row->MEMO)
Appear a long single line, all text without linefeed+CR.
When I restore from database by Delphi Application, Text is OK, there
are #10#13 (LF+CR) in every line.
How Can I put text formated in my html page ?
Variants that I tested :
echo nl2br(ibase_blob_echo($row->MEMO));
ibase_blob_echo(nl2br($row->MEMO));
str_replace("\n","<br>",ibase_blob_echo($row->MEMO));
but fail ever...
Threre are any solution ?
I wrote a memo text input from text area and write is OK, but when I
restore from PHP by :
ibase_blob_echo($row->MEMO)
Appear a long single line, all text without linefeed+CR.
When I restore from database by Delphi Application, Text is OK, there
are #10#13 (LF+CR) in every line.
How Can I put text formated in my html page ?
Variants that I tested :
echo nl2br(ibase_blob_echo($row->MEMO));
ibase_blob_echo(nl2br($row->MEMO));
str_replace("\n","<br>",ibase_blob_echo($row->MEMO));
but fail ever...
Threre are any solution ?