Joywork/config_pdo.php

19 lines
374 B
PHP
Raw Normal View History

2026-05-22 20:21:54 +02:00
<?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';