Ok, so here's how it works. people can go here:
http://www.sn0wcraft.x10.mx/votemodule.html

And vote, on the last voting site, it is supposed to add a cookie.

Heres the script.

<?php
$ip=@$REMOTE_ADDR;
setcookie($ip, $ip, time()+86400);
?>
<?php
header('Location: http://www.mctop100.net/mcserver/464--1-0-legacy-craft-no-lag-24-7-deticated-');
?>

Then, when they go to the last link, "receive diamonds"

it sends them to a link which then, checks for the cookie added by the previous page, and if the user does not have it, they Are told "You did not vote on all of the sites!"
If they indeed do have the cookie, it checks for another cookie that is added by this same script, when they have the cookie, (which expires every 24 hours) the rest of the script dies and they are given this message "You have already voted today! Come back later."
If they don't have this cookie, it executes a mysql insert, then adds the cookie to ensure that the user cannot do this again for another 24 hours.

Heres the script for that:
<?php

//Input correct values into this section
$dbhost = '******';
$dbuser = '*******';
$dbpass = '*************';
$dbname = 'vote';
$dbtable = 'redeem';
//---------------------------------------
$expire=time()+(3600*24);
$input = 'diamond 12';
$player = $_POST['Player'];
$ip=@$REMOTE_ADDR;
if (isset($_COOKIE[$ip])){

if (isset($_COOKIE['24Hourvote']))
{
die ();
echo 'You already voted today! Come back later.';
} else {
//---- This is the connection
$conn = mysql_connect ($dbhost, $dbuser, $dbpass) or die ('Error: ' . mysql_error());
mysql_select_db($dbname);
$query = "INSERT INTO `".$dbname."`.`".$dbtable."` (`player`, `item`) VALUES ('".$player."', '".$input."')";
//-------------------------------------
// This is where the script actually does something.
mysql_query($query);
mysql_close($conn);
echo 'Type /redeem to get diamonds';
}}
else {
echo "You didnt vote on all of the pages! Dont try to trick wthrwthr... He knows ALL"
}
?>
<?php
setcookie('24HourVote','24HourVote', time()+86400);
?>

The problem:

None of the cookies will work, It either disables everything, or enables everything.

anyone who can fix with the most detailed help (and a fixed version) will receive 10 dollars paypal, just put your paypal email when you answer... THANKS!!! I NEED THIS ASAP