---
# System prepended metadata

title: Untitled

---

if ($connect->connect_error) {
    die("連線失敗: " . $connect->connect_error);
}
echo "連線成功";
echo'</br>';

//設定連線編碼，防止中文字亂碼
//     $connect->query("SET NAMES 'utf8'");

$selectSql = "SELECT * FROM `test` ";
//呼叫query方法(SQL語法)
$memberData = $connect->query($selectSql);
//有資料筆數大於0時才執行
//mysql_query( $selectSql,$connect );
//if ($memberData->Name > 0) {
//讀取剛才取回的資料
    while ($row = $memberData->fetch_assoc()) {
        print_r($row);
        echo'</br>';
    }
    幹你ㄉ柏翰
    媽ㄉ死番茄`
    ==
    智障