Connection MYSQL
$host = "localhost";
$user = "username";
$pass = "password";
$link = mysql_connect($host,$user,$pass);
mysql_query("SET NAMES UTF8"); // แก้ปัญหาภาษาไทยเพี้ยน
$sql = "SQL Command"
$result = mysql_query($sql);
mysql_close($link);
?>
$user = "username";
$pass = "password";
$link = mysql_connect($host,$user,$pass);
mysql_query("SET NAMES UTF8"); // แก้ปัญหาภาษาไทยเพี้ยน
$sql = "SQL Command"
$result = mysql_query($sql);
mysql_close($link);
?>
Comments
Post a Comment