Login and Auth
This commit is contained in:
13
assets/php/db.php
Normal file
13
assets/php/db.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
$host = '172.16.18.3';
|
||||
$db = 'TechOdysseyDashboard';
|
||||
$user = 'tod_admin';
|
||||
$pass = '';
|
||||
|
||||
try {
|
||||
$pdo = new PDO("mysql:host=$host;dbname=$db", $user, $pass);
|
||||
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
} catch (PDOException $e) {
|
||||
die("Database connection failed: " . $e->getMessage());
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user