當我嘗試,沒有出現呼應這些名字......如何使呼應PHP數組
//
$getuser = "SELECT * FROM user WHERE account_id = $id";
$showuser = @mysqli_query ($dbc, $getuser); // Run the query.
while ($row = mysqli_fetch_array($showuser, MYSQLI_ASSOC)) {
$names[]=$row['user_username'];
}
echo $names;
具有與問題無關的待辦事項前初始化$名稱作爲數組... – Neal 2011-05-05 18:49:00