problem with off-site linking
Posted: Wed Oct 15, 2008 1:13 am
Ok what is supposed to happen is the clan leaders in the game can enter the link to their clans website..
Then the link shows on the main page of the game..
However when the link is clicked it tries to open the website as a subdomain of the games site instead resulting in a page not found error..
Here is the code as I have it..
anyone have a solution?
Then the link shows on the main page of the game..
However when the link is clicked it tries to open the website as a subdomain of the games site instead resulting in a page not found error..
Here is the code as I have it..
anyone have a solution?
Code: Select all
if ($users[alliance]) {
$dba = mysql_db_query($dbname,"select * from $allydb where name=\"$users[alliance]\";");
$alliance = mysql_fetch_array($dba);
}
if ($alliance[flag] && $alliance[url]) {
print "<div align=center><a href=\"$alliance[url]\" target=_blank><img src=\"$alliance[flag]\" border=0></a></div><br>\n";
}
else {
if ($alliance[flag]) {
print "<div align=center><img src=\"$alliance[flag]\" border=0></div><br>\n";
}
if ($alliance[url]) {
print "<div align=center><a href=\"$alliance[url]\" target=_blank>
$alliance[alliance]'s Home Page</a></div><br>\n";
}
}