<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "saudi_discovery"; 

$conn = mysqli_connect($servername, $username, $password, $dbname, 3307);

if (!$conn) {
    die("فشل الاتصال بقاعدة البيانات: " . mysqli_connect_error());
}

mysqli_set_charset($conn, "utf8");

if (session_status() === PHP_SESSION_NONE) {
    session_start();
}

?>