1
2
3
4
mysql_connect("localhost", "user", "password") or
                die("Could not connect: " . mysql_error());
    $query_utf = mysql_query("SET NAMES 'utf8'");
    mysql_select_db("MySql_DB");