<?php
$db = mysqli_connect('localhost', 'root', '', 'mspa');
if (!$db) {
exit("Connection failed: " . mysqli_connect_error());
}