- Joined
- Sep 24, 2023
- Messages
- 2
- Reaction score
- 0
include("../include/connection.php");
$username = $_POST['username'];
$password = $_POST['password'];
$pass_h = password_hash($password, PASSWORD_DEFAULT);
$query = mysqli_query ($connect, "INSERT INTO admin(username, password, profile) VALUES('$username', 'pass_h', '')");
if($query){
echo "hi";
}else{
echo "fff";
}
?>