fwtrash/inc/db.inc.php

14 lines
261 B
PHP
Raw Normal View History

2024-03-29 14:47:35 +00:00
<?php
$config = require_once __DIR__ . '/../config.php';
$db = new PDO(
$config->sql->dsn,
$config->sql->user,
$config->sql->password,
[
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ
]
);
?>