logo       

RE: text formatting: msg#01190

db.mysql.general

Subject: RE: text formatting

I haven't seen the rest of the thread, but form data looses all formatting.
Line breaks will remain but HTML ignores them

look at nl2br() to convert them to <br>

HTH

Peter



-----------------------------------------------
Excellence in internet and open source software
-----------------------------------------------
Sunmaia
www.sunmaia.net
info@xxxxxxxxxxx
tel. 0121-242-1473
-----------------------------------------------

> -----Original Message-----
> From: Blue Presley [mailto:blue928@xxxxxxxxxxxxxxx]
> Sent: 30 June 2002 23:31
> To: mysql@xxxxxxxxxxxxxxx
> Subject: Re: text formatting
>
>
> I'm using (and new to) PHP. any suggestions as to what functions, if any
> exist, that would be appropriate for pre-formatting?
>
> thx,
> blue
> ----- Original Message -----
> From: "Gurhan Ozen" <ergenekon@xxxxxxxxxxxxx>
> To: "Blue Presley" <blue928@xxxxxxxxxxxxxxx>; <mysql@xxxxxxxxxxxxxxx>
> Sent: Sunday, June 30, 2002 6:02 PM
> Subject: Re: text formatting
>
>
> > This should be handled before the data is even inserted into mysql. Have
> > your scripting language that you use in the form handle this to have the
> > resume formatted in the way you'd like and then have it insert the data
> into
> > mysql.
> > Gurhan
> >
> > ----- Original Message -----
> > From: "Blue Presley" <blue928@xxxxxxxxxxxxxxx>
> > To: <mysql@xxxxxxxxxxxxxxx>
> > Sent: Sunday, June 30, 2002 5:34 PM
> > Subject: text formatting
> >
> >
> > > hello,
> > > I have a web from that allows a user to submit a resume in
> text format.
> > How
> > > do i make mysql respect the formatting of the text document so that it
> is
> > > pulled from the database as it was inserted? right now
> everything comes
> > > back as one paragraph.
> > >
> > > thanks,
> > > blue
> > >
> > >
> > > ---------------------------------------------------------------------
> > > Before posting, please check:
> > > http://www.mysql.com/manual.php (the manual)
> > > http://lists.mysql.com/ (the list archive)
> > >
> > > To request this thread, e-mail <mysql-thread113434@xxxxxxxxxxxxxxx>
> > > To unsubscribe, e-mail
> > <mysql-unsubscribe-ergenekon=starpower.net@xxxxxxxxxxxxxxx>
> > > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> > >
> >
> >
> > ---------------------------------------------------------------------
> > Before posting, please check:
> > http://www.mysql.com/manual.php (the manual)
> > http://lists.mysql.com/ (the list archive)
> >
> > To request this thread, e-mail <mysql-thread113436@xxxxxxxxxxxxxxx>
> > To unsubscribe, e-mail
> <mysql-unsubscribe-blue928=carolina.rr.com@xxxxxxxxxxxxxxx>
> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> >
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <mysql-thread113438@xxxxxxxxxxxxxxx>
> To unsubscribe, e-mail
> <mysql-unsubscribe-peter=sunmaia.net@xxxxxxxxxxxxxxx>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>


---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail <mysql-thread113440@xxxxxxxxxxxxxxx>
To unsubscribe, e-mail
<mysql-unsubscribe-gcdmg-mysql=m.gmane.org@xxxxxxxxxxxxxxx>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise