[thelist] splitting mysql result up into seperate words and making each a link

Dunstan Orchard dunstan at 1976design.com
Sat Sep 14 05:07:08 CDT 2002


Hey there,

> You've basically got two choices. You can either explode the string
> into an array and run them through a loop...
>
> ...or use a regular expression to wrap each keyword in a link...
>
> My tests seem to indicate that the latter is a little faster, but as I've
> only got a list of 3 keywords the difference is negligable!

That's perfect, thankyou so much steve :o)

I went for the second option as well and it works just fine.

Now in action here:

http://www.1976design.com/testarea/photo/detail.php?number=3


Cheers - dunstan

---------------------------
Dorset, England
http://www.1976design.com/
http://www.orchard.it/
http://www.maccaws.org/



More information about the thelist mailing list