Re: [PHP] String formatting

2004-08-06 Thread Jason Davidson
you could use css too now that i think of it.. wrap your stirng in some div tag or somehting and use white-space: nowrap; or something like that. Jason [EMAIL PROTECTED] wrote: > > Jed R. Brubaker wrote: > > >Hey all! Glad you are here. > > > >I have a question that is confusing me a bit. I am

Re: [PHP] String formatting

2004-08-06 Thread Robert Cummings
On Fri, 2004-08-06 at 13:24, Jed R. Brubaker wrote: > Hey all! Glad you are here. > > I have a question that is confusing me a bit. I am trying to output a string > that is pulled from a database that I don't have control over. > > Everything is great, except that the string needs to be all on on

Re: [PHP] String formatting

2004-08-06 Thread raditha dissanayake
Jed R. Brubaker wrote: Hey all! Glad you are here. I have a question that is confusing me a bit. I am trying to output a string that is pulled from a database that I don't have control over. Everything is great, except that the string needs to be all on one line with no line breaks (for Javascript'

Re: [PHP] String formatting

2004-08-06 Thread Jason Davidson
you could remove all br tags, \n \r chars from the string. use $string = str_replace(array('\r','\n',''), '', $string); or something similar Jason "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote: > > Hey all! Glad you are here. > > I have a question that is confusing me a bit. I am trying to out

Re: [PHP] STRING FORMATTING QUESTION

2003-07-16 Thread Curt Zirzow
Dale Hersh <[EMAIL PROTECTED]> wrote: > My question is regarding strings in php. I have this form in which the user > fills in a description. The problem is that if the user uses any > aprostrophe's or any other unusual characters in the form, the string can > not be inserted into my ms sql databas