Started working on a CSGO skin database

This commit is contained in:
Daniel Løvbrøtte Olsen 2016-05-12 22:22:17 +02:00
parent f689ce67a4
commit b9e0ef7f43
4 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<? php
return array(
'db_host' => 'localhost'
'db_username' => 'root'
'db_password' => 'password'
);

24
CS-GO/Skins/db/main.php Normal file
View File

@ -0,0 +1,24 @@
<?php
$config = include('config.php');
?>
<html>
<head>
<title>CSGO skin database</title>
</head>
<body>
<?php
$con = mysqli_connect($config.db_host, $config.db_username, $config.db_password);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connection succeded";
?>
</body>
</html>