Hi,

I'm using thispixel's vote system revision 2 and it's having a bug. When it checks to see whether a person has voted, it doesn't actually check and update the query even though the person has.

Here's the methods to check:

Code:
if($vote_checking) {
	$sql = mysql_query("SELECT * FROM `tempvotes`");
	if (mysql_num_rows($sql) > 0) {
		while ($row = mysql_fetch_array($sql)) {
			if((time() - $row['time']) > 1)  
				mysql_query("DELETE FROM `tempvotes` WHERE `id` = '" . $row['id'] . "'");
		}
	}
}

Code:
if($vote_checking) {
	if(isset($_GET['postback'])) {
		$id = anti_sql($_GET['postback']);
		mysql_query("UPDATE `tempvotes` SET `voted`='1' WHERE `id` = '" . $id . "'") or die("error running query - " . mysql_error());
	}
}
If anyone could help me, that would be greatly appreciated.

Thanks.