|
|
- <?
- require_once('config.php');
- require_once('functions.php');
- $DB = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME); #connect with the database
-
- if ($DB->connect_error) { #check if there were any errors connecting
- showError('Could not connect do database server ('.$DB->connect_errno.'): '.$DB->connect_error);
- }
- if (!$DB->query("SET NAMES 'utf8'")) { #use utf-8
- showError('Could not set character to UTF-8');
- }
- ?>
|