Page 1 of 1

help with web links

Posted: Wed Jun 20, 2007 10:15 am
by taterman
When I display web links that are stored in the MySQL database as:

<a href=”www.weblink.com”>weblink</a>
(I store the whole string http://www.weblink.com into the database)

The links do not work because they end up being attached to the http://localhost. How do I get them to be stand alone web links?



Thanks for your time.

Posted: Wed Jun 20, 2007 11:20 am
by Begby
when you echo them, echo them with http:// in front of them like <a href="http://www.example.com">

Posted: Wed Jun 20, 2007 11:29 am
by taterman
Thanks for the reply.

That worked. I knew it had to be something simple.


Thanks