i wrote something about a form but it do not work and not connect the mysql
$sql = 'INERT INTO info
(userID, password,user_name,user_mail)
VALUES (:userid, :password, :user_name, :user_mail)';
$stmt=$dbh->prepare($sql);
$stmt->bindParam(':userid',$userid);
$stmt->bindParam(':password',$password);
$stmt->bindParam(':user_name',$username);
$stmt->bindParam(':user_mail',$email);
$stmt->execute();
and it’s error is:
SQL Query: INERT INTO info (userID, password,user_name,user_mail) VALUES (:userid, :password, :user_name, :user_mail)Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INERT INTO info (userID, password,user_name,user_mail) ' at line 1