<?php
$dbc = parse_ini_file(SYS .'/ini/db.ini');
try {
$db = new PDO('mysql:dbname='.$dbc['base'].';host='.$dbc['host'], $dbc['user'], $dbc['pass']);
} catch (PDOException $e) {
}
$db->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
$db->query("SET NAMES utf8");