php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19183 nl2br in MySQL blob fields
Submitted: 2002-08-29 20:41 UTC Modified: 2002-08-29 20:53 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:41 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.
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-29 20:51 UTC] jpleite at ip dot 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:53 UTC] iliaa@php.net
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.


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