<?php/*** 由 runner.han 創作 * 陽光下無新鮮事*/header('Content-type:text/html;charset=utf-8'); include_once 'header.php';include_once 'inc/config.inc.php ';$dbhost=DBHOST;$dbuser=DBUSER;$dbpw=DBPW;$dbname=DBNAME;$dbport=DBPORT;$mes_connect='';$mes_create='';$mes_data='';$mes_ok='' ;if(isset($_POST['submit'])){ $link = mysqli_connect($dbhost, $dbuser, $dbpw ,$dbport); //判斷資料庫連線 //if(!@mysqli_connect($dbhost, $ dbuser, $dbpw)){ //if(!@mysqli_connect("localhost", "root", "root", "13306")){ if(!$link){ echo '資料連線失敗,請仔細檢查檢查/config.inc.php的設定'; echo "Error: Unable to connect to MySQL." . PHP_EOL; echo "Debugging errno: " mysqli_connect_errno() ; or em. exit; // exit(mysqli_connect_error()); } $link=mysqli_connect(DBHOST, DBUSER, DBPW); $mes_connect.="<p class='notice'>