" . "------------"; include "include-header.php"; require_once "db/database.php"; # 載入db.php來連結資料庫 $data = array(); # 設置一個空陣列來放資料 $sql = "SELECT * FROM account where (accountid = '$user_id')"; # sql語法存在變數中 $data = mysqli_query($link,$sql); # 用mysqli_query方法執行(sql語法)將結果存在變數中 foreach($data as $data){ $phone_call_help = $data['phone_call_help']; } #$phone_call_help = $data['phone_call_help']; ?>