Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
- class M_map extends CI_Model {
- function __construct()
- {
- parent::__construct();
- }
- public function get_coordinates()
- {
- $return = array();
- $this->db->select("LAT,LNG");
- $this->db->from("v_route");
- $query = $this->db->get();
- if ($query->num_rows()>0) {
- foreach ($query->result() as $row)
- {
- array_push($return, $row);
- }
- }
- return $return;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment