= ( CURDATE() - INTERVAL 1 DAY )");
//$todayresult = mysql_fetch_assoc($ipresult);
//print_r($todayresult);
//var_dump($todayresult);
// just a simple loop to go through each ip returned
while($row = mysql_fetch_assoc($ipresult)) {
// we find an ip that matches
if ($row['ipaddr'] == $ip) {
$iperror = $iperror + 1;
}
}
// we're okay on the ip
if ($iperror == 0) {
date_default_timezone_set("UTC");
// datetime variable
$phpdate = date("Y-m-d H:i:s");
$insertQuery = "INSERT INTO results (submitdate, ipaddr, vote)
VALUES (" . "\"" . $phpdate . "\", \"" . $ip . "\", \"" . $_POST["win"] . "\");"; // voted for one of 4 images
mysql_query($insertQuery) or die(mysql_error());
?>
You can only vote once per day.
Vote for your favorite cover below.
The cover with the most votes will be chosen as the reverse cover for Utawarerumono: Prelude to the Fallen.
You may vote once per day for the duration of the event.
This contest will run from November 18, 2019 to November 22, 2019