-Original Message-
From: Dan Joseph [mailto:[EMAIL PROTECTED]
Sent: 30 May 2003 18:03
Just did a bit of checking..
NL == ASCII 010, CR == ASCII 015..
Ahh ok, so nl2br() would work. Cool, I guess you learn
something new
everyday. Is there a one for CR's? I noticed
How do you put a carriage return in a MySQL database and have it
display as a line break on the web page?
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How do you put a carriage return in a MySQL database and have it
display as a line break on the web page?
str_replace (\n, br, $var);
-Dan Joseph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dan Joseph wrote:
How do you put a carriage return in a MySQL database and have it
display as a line break on the web page?
str_replace (\n, br, $var);
-Dan Joseph
Is CR == NL? What's wrong with nl2br()?
--
David Grant
Web Developer
[EMAIL PROTECTED]
http://www.wiredmedia.co.uk
Tel: 0117
Hi,
str_replace (\n, br, $var);
-Dan Joseph
Is CR == NL? What's wrong with nl2br()?
Beats me, is it? nothing wrong with it I guess, I just didn't know about
that function.
-Dan Joseph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Dan Joseph wrote:
Hi,
str_replace (\n, br, $var);
-Dan Joseph
Is CR == NL? What's wrong with nl2br()?
Beats me, is it? nothing wrong with it I guess, I just didn't know about
that function.
-Dan Joseph
Just did a bit of checking..
NL == ASCII 010, CR == ASCII 015..
--
David
Hi,
Just did a bit of checking..
NL == ASCII 010, CR == ASCII 015..
Ahh ok, so nl2br() would work. Cool, I guess you learn something new
everyday. Is there a one for CR's? I noticed cr2br() wasn't listed in the
manual.
-Dan Joseph
--
PHP General Mailing List
Hi guys,
I see the following the messages
Notice: Object to string conversion in
D:\Inetpub\wwwroot\cad_service\presentation\PresentationObject.php on
line 18
Notice: Object to string conversion in
D:\Inetpub\wwwroot\cad_service\presentation\PresentationObject.php on
line 19
class
8 matches
Mail list logo