I am not able to figure it out the error can any one help me ..

Below is the code.

main_model.php

<?php
class Main_model extends CI_Model {

  // function fetch_data($selecteddate){
  //   //$query = $this->db->query("SELECT * FROM `userLocationLogcat` WHERE id IN ( SELECT MAX(id) FROM userLocationLogcat GROUP BY email )");
  //   return 0;
  // }

  public function getUsers(){
    return 0;
  }

}
?>

welcome.php(controller)

public function one(){
        $this->load->model('main_model');
        $data = $this->main_model->getUsers();
        echo $data;
    }

please help.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.