# Defalut Server
$ServerName="localhost"; # Host Name
$DatabaseName="test"; # Database Name
$User="root"; # User Name
$Password="1234"; # Password
$Conn=mysql_connect($ServerName,$User,$Password) or die("ไม่สามารถติดต่อ Server ได้"); # Create Connection
mysql_select_db($DatabaseName,$Conn) or die("ดาต้าเบสมีปัญหา"); #SelectDatabase
mysql_query("SET NAMES UTF8"); # SET Encoding
header('Content-type: text/html; charset=utf-8');