Joywork/config_pdo.php
2026-05-22 21:21:54 +03:00

19 lines
374 B
PHP

<?php
error_reporting(0);
$config_file = __DIR__ . '/config_db.php';
if (file_exists(__DIR__ . '/config_db.local.php'))
$config_file = __DIR__ . '/config_db.local.php';
require_once $config_file;
require_once 'engine/classes/MysqlPdo.php';
$pdo = new MysqlPdo(hst, ndb, user, pass);
$sql = "SET NAMES 'utf8mb4'";
$pdo->query($sql);
require_once 'config_common.php';