我从For循环的下面得到了Error;
while($Row=mysql_fetch_array($qry)){
$result_list[] = $Row;
}
foreach((array)$result_list as $Row) {
$ID=$Row['ID'];
$Name=$Row['name'];
$has_acco = $Row['Accomodation'];
}
答案 0 :(得分:0)
以这种方式尝试代码
while($Row=mysql_fetch_array($qry)){
$ID=$Row['ID'];
$Name=$Row['name'];
$has_acco = $Row['Accomodation'];
}
不需要多余的for loop