<?php
// RS Learning Lab - single DB config

$host = "localhost";
$user = "root";
$pass = "";        // XAMPP default empty password
$db   = "rs_lab";  // IMPORTANT: your phpMyAdmin DB name

// Create connection
$conn = new mysqli($host, $user, $pass, $db);

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

// Optional: show errors while developing
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
?>
