16 lines
362 B
PHP
16 lines
362 B
PHP
<?php
|
|
// Database configuration variables
|
|
$dbHost = 'localhost';
|
|
$dbUsername = 'root';
|
|
$dbPassword = '';
|
|
$dbName = 'qraset';
|
|
|
|
// Establishing a new database connection using mysqli()
|
|
$conn = mysqli_connect($dbHost, $dbUsername, $dbPassword, $dbName);
|
|
|
|
// Checking for connection errors
|
|
if (!$conn) {
|
|
die("Connection failed: " . mysqli_connect_error());
|
|
}
|
|
?>
|