#19183 [Opn->Bgs]: nl2br in MySQL blob fields
| From: | iliaa@php.net | Date: | Fri, 30 Aug 2002 00:53:15 +0000 |
| Subject: | #19183 [Opn->Bgs]: nl2br in MySQL blob fields | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-18199@lists.php.net to get a copy of this message | ||
ID: 19183
Updated by: iliaa@php.net
Reported By: jpleite@ip.pt
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: Linux
PHP Version: 4.2.1
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-08-29 20:51:23] jpleite@ip.pt
Please appologise I've sent the same bug report twice.
Please ignore (and delete) this bug report and see #19184.
Jorge
------------------------------------------------------------------------
[2002-08-29 20:41:27] jpleite@ip.pt
A blob field is filled in a page as a <textarea>. Obviously the text is
input formatted, with ENTER to split some lines.
This text is to be seen in a "normal" html page, and I want it to be
seen exactly as entered.
My code for the "seen" page is:
$str="<table><tr><td>...";
...
$str.=nl2br($row[blobfield])";
...
echo($str);
However the result is that the full text is not seen. If I change it
to:
$str="<table><tr><td>...";
...
$str.=$row[campoblob]";
...
echo($str);
the text is seen, but unformatted.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19183&edit=1