fe_qrcodegenerator/dbconn.php

16 lines
362 B
PHP
Raw Normal View History

2023-03-21 09:21:44 +07:00
<?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());
}
?>