11 lines
206 B
PHP
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
|
||
|
]
|
||
|
);
|