$sql = 'INSTERT INTO users (Email, Password, Name, Surname, type_account, company_name, phone_number)
VALUES ('.$_POST['email']. ', '.$_POST['password']. ', ' .$_POST['name']. ', ' .$_POST['fname']. ',
' .$_POST['type_account']. ', ' .$_POST['company_name']. ', ' .$_POST['phone_number'].')';
Fatal error: Uncaught PDOException: 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 'INSTERT INTO users (Email, Password, Name, Surname, type_account, company_name, ' at line 1 in C:\OSP\OpenServer\domains\localhost\register.php:30 Stack trace: #0 C:\OSP\OpenServer\domains\localhost\register.php(30): PDO->query('INSTERT INTO us...') #1 {main} thrown in C:\OSP\OpenServer\domains\localhost\register.php on line 30