:::

3-2 function.php

<?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;
}

 


:::

書籍目錄

展開 | 闔起

http%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbsn%3D28%26tbdsn%3D773

計數器

今天: 1268126812681268
昨天: 2138213821382138
總計: 7322550732255073225507322550732255073225507322550