01.
<?php
02.
$host
=
"greenmindphuket.db.7325142.hostedresource.com"
;
03.
$user
=
"greenmind"
;
04.
$password
=
"beerggg"
;
05.
$dbname
=
"greenmindphuket"
;
06.
$conn
=mysql_connect(
$host
,
$user
,
$password
)
or
die
(
"Could not connect"
);
07.
mysql_query(
"SET NAMES utf-8"
);
08.
mysql_query(
"SET character_set_results=utf8"
);
09.
mysql_query(
"SET character_set_client=utf8"
);
10.
mysql_query(
"SET character_set_connection=utf8"
);
11.
mysql_select_db(
$dbname
)
or
die
(
"Could not select database"
);
12.
?>