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
}
全站熱搜