[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
simkeu
/
dummy-old
/
application
/
models-old
/
[
Home
]
File: country_model.php
<?php class Country_model extends CI_Model { public function __construct() { $this->load->database(); } function get_countries() { $this->db->select('id, country_name'); $query = $this->db->get('countries'); $countries = array(); if ($query -> result()) { foreach ($query->result() as $country) { $countries[$country->id] = $country->country_name; } return $countries; } else { return FALSE; } } } ?>