01.
<?php
02.
$hostname
=
"localhost"
;
03.
$user
=
"xxxxxx"
;
04.
$password
=
"xxxxx"
;
05.
$dbname
=
"xxxxx"
;
06.
07.
mysql_connect(
$hostname
,
$user
,
$password
)
or
die
(
"Can't connect to Database"
);
08.
mysql_select_db(
$dbname
)
or
die
(
"Can't select to Database"
);
09.
mysql_query(
"SET character_set_results=utf8"
);
10.
mysql_query(
"SET character_set_client=utf8"
);
11.
mysql_query(
"SET character_set_connection=utf8"
);
12.
?>