<?php //連上資料庫 function link_db() { //實體化 $mysqli = @new mysqli(_DB_LOCATON, _DB_ID, _DB_PASS, _DB_NAME); if ($mysqli->connect_error) { die('無法連上資料庫:' . $mysqli->connect_error); } $mysqli->set_charset("utf8"); return $mysqli; }
進階搜尋