Horizon88's solution is on the right track, but mysql_real_escape_string() should not be applied to the entire SQL statement. It should be applied to each variable that contains a string and is used in the SQL statement. Otherwise the single quotes used to delimit the strings in SQL would themselves be escaped.
Two ways of doing this would be:
$sql = sprintf("UPDATE userdb SET active='%s', active2='%s', ipaddress='%s'
WHERE email='%s'",
mysql_real_escape_string($time),
mysql_real_escape_string($realtime),
mysql_real_escape_string($ip),
mysql_real_escape_string($email));
mysql_query($sql);
and
$time = mysql_real_escape_string($time);
$realtime = mysql_real_escape_string($realtime);
$ip = mysql_real_escape_string($ip);
$email = mysql_real_escape_string($email);
$sql = "UPDATE userdb SET active='$time', active2='$realtime', ipaddress='$ip'
WHERE email='$email'";
mysql_query($sql);
anyone interested in a coding job? seriously... I think the game owner would agree.
Unfortunately soliciting for employees is forbidden here.