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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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: Thu Dec 26 22:01:28 2024 UTC