close

$query_city = "SELECT * FROM city";
$city = $this->db->query($query_city);

foreach($city->result() as $Row){
// do something
}
// As soon as the foreach is reached, the first record is retrieved again.
foreach($city->result() as $Row){
// do something else
}

arrow
arrow
    全站熱搜

    stockwfj3 發表在 痞客邦 留言(0) 人氣()