36459-vm/config.php
2026-05-27 14:29:58 +05:30

20 lines
472 B
PHP

<?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);
?>