@DanielCory I've voted to close this question as off-topic as broken code is not reviewable, however I would try replacing
(?,?,?,?,?,?)
with
(:firstname, :lastname, :email, :userid, :password, :level)
and then
$sql->bind_param(":firstname", $firstname);
for each parameter, and if it works update the question and we may then review the code
as it works. You can also get the exact errors with
$conn->errno
and
$conn->error
. That should help you with further debugging. —
EBrown 2 mins ago