#19183 [NEW]: nl2br in MySQL blob fields
| From: | jpleite at ip dot pt | Date: | Fri, 30 Aug 2002 00:41:27 +0000 |
| Subject: | #19183 [NEW]: nl2br in MySQL blob fields | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-18196@lists.php.net to get a copy of this message | ||
From: jpleite@ip.pt
Operating system: Linux
PHP version: 4.2.1
PHP Bug Type: Output Control
Bug description: nl2br in MySQL blob fields
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 bug report at http://bugs.php.net/?id=19183&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19183&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19183&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19183&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19183&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19183&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19183&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19183&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19183&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19183&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19183&r=globals