<?php
// db.php — MySQLi (procedural)

$host = '127.0.0.1';   // XAMPP tip: use 127.0.0.1 (not localhost)
$user = 'root';        // XAMPP default
$pass = '';            // XAMPP default (empty password)
$db   = 'zetechup_academy';  // your DB name

// IMPORTANT: mysqli extension must be enabled (see step 3)
$conn = mysqli_connect($host, $user, $pass, $db);

if (!$conn) {
  // don't continue silently — show the real reason
  die('DB connection failed: ' . mysqli_connect_error());
}
