O Xabarin
2008-10-31 23:24:03 UTC
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.967.754)' at line 1 (I changed the IP numbers)
$ip = $_SERVER['REMOTE_ADDR'];
global $ip;
$id = $_GET['ID'];
$ip = mysql_real_escape_string($ip);
$ipcheck = mysql_query("SELECT * FROM votes WHERE word_id LIKE $id AND ip LIKE $ip") or die (mysql_error());