RE: [PHP] CR in MySQL?

2003-06-03 Thread Ford, Mike [LSS]
> -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

RE: [PHP] CR in MySQL?

2003-05-31 Thread Narayana Reddy Gari, Ramki (MED)
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 Presentation

RE: [PHP] CR in MySQL?

2003-05-31 Thread Dan Joseph
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 (http://www.php.n

Re: [PHP] CR in MySQL?

2003-05-31 Thread David Grant
Dan Joseph wrote: Hi, str_replace ("\n", "", $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 G

RE: [PHP] CR in MySQL?

2003-05-31 Thread Dan Joseph
Hi, > > str_replace ("\n", "", $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: http

Re: [PHP] CR in MySQL?

2003-05-31 Thread David Grant
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", "", $var); -Dan Joseph Is CR == NL? What's wrong with nl2br()? -- David Grant Web Developer [EMAIL PROTECTED] http://www.wiredmedia.co.uk Tel: 0117

RE: [PHP] CR in MySQL?

2003-05-31 Thread Dan Joseph
> 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", "", $var); -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php