0
CREATE TABLE tblUser (
  User_ID INT NOT NULL AUTO_INCREMENT,
  User_Email VARCHAR(40) NOT NULL,
  User_Password VARCHAR(30) NOT NULL,
  PRIMARY KEY (User_ID)
);

INSERT INTO `tblUser` (`User_Email`, `User_Password`) 
VALUES (`user1@local.com`, `password`);

Unknown column 'user1@local.com' in 'field list'

GMB
  • 195,563
  • 23
  • 62
  • 110
Geo2020ge
  • 1
  • 1

1 Answers1

1

Use single quotes instead of backticks for strings.

INSERT INTO `tblUser` (`User_Email`, `User_Password`) 
VALUES ('user1@local.com', 'password');

Check this link for more explanation.

And I really hope that your passwords are hashed.

GMB
  • 195,563
  • 23
  • 62
  • 110
nbk
  • 31,930
  • 6
  • 24
  • 40