mirror of
https://github.com/c0de-archive/GAMA-Site.git
synced 2024-12-22 17:42:40 +00:00
16 lines
435 B
PHP
16 lines
435 B
PHP
<?php
|
|
//This is for all login requests to mysql
|
|
$host="localhost"; // Host name
|
|
$username=""; // Mysql username
|
|
$password=""; // Mysql password
|
|
$db_name=""; // Database name
|
|
$tbl_name=""; // Table name
|
|
|
|
// Connect to server and select database.
|
|
$db = new mysqli($host, $username, $password, $db_name);
|
|
|
|
if($db->connect_errno > 0){
|
|
die('Unable to connect to database [' . $db->connect_error . '] - Check dbsettings.php');
|
|
}
|
|
?>
|