Files
sg/robocze/init.php
chp1994 6de08b68b4 Nowa wersja webmasterska
git-svn-id: https://svn.pioder.pl/sg-svn@12 3ed2631f-fe0d-47e0-9194-a46bc0f18ee8
2009-06-23 12:57:21 +00:00

13 lines
423 B
PHP

<?
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');
}
?>