数据没有写入sql数据库?

问题描述:

所以我已经设置了一个php脚本,如下所示:http://mmtuts.net/course.php?c=php&l=44(这有所有的文件和视频)。数据没有写入sql数据库?

当我透过形式我还是得到成功:

  $sql = "INSERT INTO users (user_first, user_last, user_email, user_uid, user_pwd) VALUES ('$first', '$last', '$email', '$uid', '$hashedPwd');"; 
      mysqli_query($conn, $sql); 
      header("Location: ../signup.php?signup=success"); 

然而,当我去到SQL数据库,记录了什么?

我通过godaddy托管使用在线服务器。

enter image description here

我可以手动添加到数据库:

enter image description here

+1

尝试'INSERT INTO USERS ...' –

+1

而不是学习MySQLi,而是查找PDO。 – ProEvilz

+0

@LawrenceCherone你的意思是手动插入?我已经上传了截图。 –

你使用一个大写的表名USERS,但你的查询使用小写users

您应该将表格重命名为小写。