📜  http_user 代理与 SQL - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:36.242000             🧑  作者: Mango

代码示例1
$agent = mysql_real_escape_string($_SERVER['HTTP_USER_AGENT']);
$sql   = "INSERT INTO `table` set useragent = '$agent'";
$res   = mysql_query($sql) or trigger_error(mysql_query.$sql);