php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19184 nl2br in MySQL blob fields
Submitted: 2002-08-29 20:43 UTC Modified: 2002-08-29 21:44 UTC
From: jpleite at ip dot pt Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.2.1 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jpleite at ip dot pt
New email:
PHP Version: OS:

 

 [2002-08-29 20:43 UTC] jpleite at ip dot pt
A blob field is filled in a page as a <textarea>. Obviously the text is input formatted, with ENTER to split some lines from others.
This text is to be seen in a "normal" (with no input facility, eg, without any <textarea> field) html page, and I want it to be seen exactly as entered.
My code for the "normal" 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[blobfield];
...
echo($str);
the text is seen, but unformatted.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-29 21:44 UTC] sniper@php.net
same report submitted twice..bogus.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 14:01:29 2024 UTC