$user_q = mysql_query("SELECT * FROM poker WHERE ip = '" . $_SERVER['REMOTE_ADDR'] . "';")
or die(mysql_error());
if (mysql_num_rows($user_q) < 1) {
mysql_query("INSERT INTO poker VALUES (NULL, '" . $_SERVER["REMOTE_ADDR"] . "', 1000, NULL")
or die(mysql_error());
}
Felmeddelandet:
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 '' at line 1