<?php

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

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

// Disable error display to prevent revealing database details
if ($conn->connect_error) {
    error_log("Database connection error: " . $conn->connect_error);
    die("Database connection error. Contact admin.");
}

// Enforce strict mode (prevents risky SQL)
$conn->query("SET SESSION sql_mode = 'STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION'");

?>