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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
43 - 24 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Sun May 05 18:01:31 2024 UTC