Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class User_model extends CI_Model{
- function return_users(){
- $this->load->database();
- $query = $this->db->query("SELECT * FROM user");
- $query->result_array();
- // echo "<pre>";
- // print_r($query->result_array());
- // echo "</pre>";
- return $query->result_array();
- }
- }
- ?>
Add Comment
Please, Sign In to add comment