mysql 查询在 xamp 中工作但在服务器中不起作用

问题描述 投票:0回答:1

我在 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 !";




    
mysql-error-1064
1个回答
0
投票

不要在后面加点;正确的语法是:

`dbname`.`tablename`
© www.soinside.com 2019 - 2024. All rights reserved.