You are here: Re: if i wanted to have the text i enter into a database be retrived formated the way i want it how could i do that « PHP Programming Language « IT news, forums, messages
Re: if i wanted to have the text i enter into a database be retrived formated the way i want it how could i do that

Posted by so many sites so little time on 11/20/06 21:29

acutally what krustov said is more of what i want, as long as they
write out the link http:// then it should work well.
so many sites so little time wrote:
> yeah i guess i should get into regex, basicly i should prob just make a
> button like most message boards do out of javascript to let them make
> it a link i think wordpress does it that way to... blah off to school
> Geoff Berrow wrote:
> > Message-ID: <MPG.1fcbc0a16d76d94498a1e5@news.newsreader.com> from
> > Krustov contained the following:
> >
> > >> or having to do <href = or <a href = for a link
> > >> what could i do to have php enter to mysql or retrive it formated?
> > >>
> > >
> > >If you mean you have a piece of bare text like http://www.whatever.com
> > >and you want to make it into a hyperlink after grabbing it from your
> > >database - then you could do something like the following .
> > >
> > ><?php
> > >
> > >$grab="http://www.whatever.com";
> > >
> > >$extra="<a href=$grab>$grab</a>";
> > >
> > >print $extra;
> > >
> > >?>
> >
> > It could be that he wants to turn anything that just looks like a link
> > into a link. That would involve a bit of regex (note to self: must put
> > in effort to learn more regex...)
> >
> >
> >
> > --
> > Geoff Berrow (put thecat out to email)
> > It's only Usenet, no one dies.
> > My opinions, not the committee's, mine.
> > Simple RFDs http://www.ckdog.co.uk/rfdmaker/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация