fwtrash/inc/db.inc.php
2024-03-29 17:30:25 +01:00

11 lines
206 B
PHP

<?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
]
);