View file config.php
<?php $db = mysql_connect("localhost", "логин", "пароль"); mysql_select_db("имя_бд", $db); mysql_query('SET NAMES utf8'); ?>
<?php $db = mysql_connect("localhost", "логин", "пароль"); mysql_select_db("имя_бд", $db); mysql_query('SET NAMES utf8'); ?>