<?php
//php顯示編碼
header("Content-Type:text/html; charset=utf-8");
//連接資料庫
$con = mysql_connect("localhost", "philip", "philip01");
mysql_query("set names utf8");
//連接狀態結果
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
$db_selected = mysql_select_db("teaching_english", $con);
if (!$db_selected)
{
die ("Can't use test_db : " . mysql_error());
}
?>