Forum Moderators: coopster

Message Too Old, No Replies

hyperlinking a stored url on output

         

normsky

8:38 pm on Jan 27, 2003 (gmt 0)

10+ Year Member



Hi,
I'm new at this i would like to put text into my database which is hyperlinked.

for example i would like to put the text MYSITE and the url of mysite http:://www.mysite.com into my database.
Then i want to display the text MYSITE and when i click on it it will take me to [mysite.com...]

Could anyone tell me how to do this or where i can find some info how to do this.

Thanks,
Norm

jatar_k

8:42 pm on Jan 27, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld normsky,

maybe after your select you check to see if the value was entered in the db

if (isset($url)) { //$url selected from db
echo "<a href=\"" . $url . "\">" . $url . "</a>";
}

or something like that