<?php
include_once("../config/db_connection.php");
$password_hash = password_hash($_POST['password'], PASSWORD_BCRYPT);
$sql = "INSERT INTO sys_user (username, password, account_type)
VALUES ('".$_POST["username"]."', '$password_hash', '".$_POST["accounttype"]."')";
($db->query($sql));
header("Location: user_account.php?msg=correct");
?>