fwtrash/inc/db.inc.php

11 lines
206 B
PHP
Raw Normal View History

2024-03-29 14:47:35 +00:00
<?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
]
);