Hello,
I am working on a Webring for my website and I am having problems with the coding.
I am working on the links to change between previous and next site, it currently just reloads the current page so I need your help.
Here is my code:
include('config.php');
$id2 = $_GET['id'];
$id = $id2 - 1;
$output = mysql_query("SELECT * FROM webring WHERE id='$id'") or die();
while ($row=mysql_fetch_array($output)) {
$nextsite = $r['site_url'];
}
echo "<meta http-equiv=\"refresh\" content=\"0; url=$nextsite\" />\n";
It looks fine to me, but it obviously isn't so if anyone can help please do.
Thanks
Nick




Reply With Quote





