News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

links to another site

Started by SeaOfSin, June 21, 2005, 12:55:32 PM

Previous topic - Next topic

SeaOfSin

I have this program that pulls links from a database to other sites, but instead of just going to the link it appends to my home site. How do I make it so it just has a link to the other site

This is what I have at the moment


$link = $a["link"];
$name = $a["title"];
$desc = $a["description"];

echo"<table title='80s Music Forum and General Music Forum' width='95%' cellpadding=5 cellspacing=0 border=2 align=center bgcolor=#000000 bordercolor=#808080 bordercolordark=#4B0082 bordercolorlight=#9900CC>
<tbody>
<tr class=data><td width=200% colspan=2><a href='$link' title='$desc'>$name</a><br></td></tr>


but what I get is

mysite.com/othersite.com


Sea Of Sin

[Unknown]

You need the http:// to be part of the link.

-[Unknown]

SeaOfSin

Thanks. I just figured that out!!! :)


Thats what I get for posting then trying something!

Wow! though quick response!!! Thanks for the quick reply! I barely posted it

Sea Of Sin

Advertisement: