为什么我有这个错误?
您的SQL语法有错误;查看与您的MySQL服务器版本相对应的手册,以便在'22:59:45,5.122.42.79附近使用正确的语法,登录到BanTools)'第1行[1064]
@$log = "1";
$act = "logged in to BanTools";
$a = "Ramin";
if($log == "1" ) {
$visit = Array(
'username' => $a,
'ctime' => date("Y-m-d H:i:s"),
'ip_address' => $_SERVER['REMOTE_ADDR'],
'action' => $act
);
$sql = "INSERT into act_log (".join(',', array_keys($visit)).") VALUES (".join(',', array_values($visit)).") ";
$db->sql_query($sql);
$db->sql_close();
}