You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
401 B
PHP
21 lines
401 B
PHP
<?php
|
|
|
|
$dbVars = [
|
|
'servername' => "localhost",
|
|
'username' => "admin",
|
|
'password' => "password",
|
|
'database' => "tournaments"
|
|
];
|
|
|
|
// Create connection
|
|
$conn = new mysqli($dbVars['servername'], $dbVars['username'], $dbVars['password'], $dbVars['database']);
|
|
|
|
// Check connection
|
|
if ($conn->connect_error) {
|
|
die("Connection failed: " . $conn->connect_error);
|
|
}
|
|
|
|
//echo "Connected successfully";
|
|
|
|
?>
|