虽然 visits
的+1工作,但 browser
并不保存任何值,即使我更换< / p>
`$browser` = $_SERVER[HTTP_USER_AGENT];
带
`$browser` = "foobar";
我做错了什么?
$browser = $_SERVER['HTTP_USER_AGENT'];
mysql_query("UPDATE `general` SET `visits` = `visits` + 1, `browser` = '$browser' WHERE `token` = '$cookie'");