I am trying to use php to build links from text inserted into a mysql database. The text is inserted into two values, sitename and address. I am using the following code to try and build the link:
<?
$result = mysql_query("SELECT * FROM $show",$connection);
while($myrow = mysql_fetch_array($result)){
print "<A href = \"";
print $myrow['hyperlink'];
print "\">";
print $myrow['sitename'];
print "</a>";
print "<BR>";}
?>
It half works. It shows the link with sitename, but for some reason, it puts my domain right before the site url. Basically, it outputs a blank link. I can't seem to figure out why this is. Any help would be appreciated. Thanks
Todd