Transfer to git
This commit is contained in:
19
includes/dbh.inc.php
Normal file
19
includes/dbh.inc.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
$host = "192.168.1.32";
|
||||
$protocol = "mysql";
|
||||
$dbname = "masivslair";
|
||||
|
||||
$dsn = $protocol . ":host=" . $host . ";dbname=" . $dbname;
|
||||
|
||||
$dbusername = "masiv_";
|
||||
$dbpassword = "AtzSdRp2QeZB0b582FIKLOxcvaC95bH4Uqbnj62E65FATNmx6ovCNBLu8NWZ";
|
||||
|
||||
try {
|
||||
$pdo = new PDO($dsn,$dbusername,$dbpassword);
|
||||
$pdo->setAttribute(PDO::ERRMODE_EXCEPTION,PDO::ATTR_ERRMODE);
|
||||
} catch (PDOException $e) {
|
||||
echo "An error has ocurred: " . $e->getMessage();
|
||||
}
|
||||
Reference in New Issue
Block a user