Started working on a CSGO skin database
This commit is contained in:
parent
f689ce67a4
commit
b9e0ef7f43
7
CS-GO/Skins/db/config.php
Normal file
7
CS-GO/Skins/db/config.php
Normal 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
24
CS-GO/Skins/db/main.php
Normal 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>
|
Loading…
Reference in New Issue
Block a user