<?php
$localhost = 'localhost';
$user = 'netsafc2_adds';
$pass = '@mashaAllah01';
$dbn = "netsafc2_inyass";

// Create connection
$conn = new mysqli($localhost, $user, $pass, $dbn);

// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}

$username = "admin";
$password = "@mashaAllah61685008ce";

// Hash the password
$password_hash = password_hash($password, PASSWORD_DEFAULT);

// Insert the admin user into the database
$stmt = $conn->prepare("INSERT INTO 61685008ce (username, password_hash) VALUES (?, ?)");
$stmt->bind_param("ss", $username, $password_hash);

if ($stmt->execute()) {
    echo "Admin user created successfully.";
} else {
    echo "Error: " . $stmt->error;
}

$stmt->close();
$conn->close();
?>