<?php

// host config
// const CONFIG = [
//   'db' => 'mysql:dbname=platinum_raffledb;localhost;port=3306',
//   'db_user' => 'platinum',
//   'db_password' => 'tzHTySW5MFmdKQ81',
// ];

// $servername = "localhost";
// $username = "platinum";
// $password = "tzHTySW5MFmdKQ81";
// $dbname = "platinum_raffledb";
// //

// Local configuration
const CONFIG = [
  'db' => 'mysql:host=localhost;dbname=gamextreme_raffledb;port=3307',
  'db_user' => 'root',
  'db_password' => '',
];

// Database connection (MySQLi)
$hostname = "localhost";
$db_user = "root"; // user name
$db_pw = ""; // password
$db_name = "gamextreme_raffledb"; // database name

$connection = mysqli_connect($hostname, $db_user, $db_pw, $db_name);

if (mysqli_connect_errno()) {
  die("Cannot connect to database");
}
?>
