2
0

change folder structure for KA's

This commit is contained in:
2026-05-20 15:00:22 +02:00
parent 44623ba94e
commit b3afa9163b
6 changed files with 270 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
// DANIEL CWIKLA
function db_connect() {
require_once "db_connection.php";
$db_server = "$db_engine:dbname=$db_name;host=$db_host";
try {
$dbh = new PDO($db_server, $db_user, $db_password);
echo "<p>DB Connected</p>";
return $dbh;
}
catch(PDOException $e) {
die("<p>Error</p>");
}
}
?>