Cześć, na stronie wyskakuje mi błąd:
exception 'Exception' with message 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''function','name','pass','active','school','fname','sname') VALUES ('user','Bium' at line 1' in C:\xampp\htdocs\register.php:101 Stack trace: #0 {main}
PHP:
if ($polaczenie->query("INSERT INTO users ('function','name','pass','active','school','fname','sname') VALUES ('$func','$nick', '$password', '$int', '$school', '$fname', '$sname')"))