我在 php 中安装了主登录系统,它在 XAMMP 中运行完美,但在服务器中它在注册页面中给出错误:
“出现错误!请重试!” 马特卡420
if(($db->query("INSERT INTO `".MLS_PREFIX."users` SET ?u", $user_data)) && ($id = $db->insertId()) && ($db->query("INSERT INTO `".MLS_PREFIX."privacy` SET `userid` = ?i", $id)) && ($db->query("INSERT INTO `".MLS_PREFIX."privacy1` SET `chart` = '1', `vip` = '1', `userid` = ?i", $id))) {
$page->success = 1;
$_SESSION['user'] = $id;
$user = new User($db);
} else
$page->error = "There was an error ! Please try again !";
不要在后面加点;正确的语法是:
`dbname`.`tablename`