Posted by Geoff Berrow on 11/20/06 13:50
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]
|