Please click here to return to the links category."; include("footer.php"); exit; } $temp = mysql_query("SELECT * FROM linkvotes WHERE ip='$domain' AND linkid=$link"); if (mysql_numrows($temp) > 0) { echo "Our records show that you have voted for this item in the past week and therefore you can not vote again. You vote has not been counted.

Please click here to return to the links category."; include("footer.php"); exit; } $date = date("Ymd"); $temp = mysql_query("INSERT INTO linkvotes (ip, linkid, date) VALUES ('$domain', $link, '$date')"); $update = mysql_query("UPDATE links SET rating1=$rating1, rating2=$rating2, rating3=$rating3, rating4=$rating4, rating5=$rating5 WHERE id=$link"); if ($update) { echo "Thank you. Your vote was counted for this link.

Please click here to return to the links category."; include("footer.php"); } } ?>