I got above Error from below For Loop;
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'];
}
I got above Error from below For Loop;
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'];
}
try code this way
while($Row=mysql_fetch_array($qry)){
    $ID=$Row['ID'];
    $Name=$Row['name'];
    $has_acco = $Row['Accomodation'];
}
no need extra for loop
