<?php
class Author_model extends CI_Model {

    public function __construct() {
        $this->load->database();
    }

    public function add_author($image = "") {
    	$data = array(
        'name' => $this->input->post('name'),
        'image' => $image,
        'description' => $this->input->post('description')
    	);

    	return $this->db->insert('authors', $data);
    }
}
<?php
class Author_model extends CI_Model {

    public function __construct() {
        $this->load->database();
    }

    public function add_author($image = "") {
    	$data = array(
        'name' => $this->input->post('name'),
        'image' => $image,
        'description' => $this->input->post('description')
    	);

    	return $this->db->insert('author', $data);
    }

    public function get_authors($image = "") {
    	$query = $this->db->get('author');
        return $query->result_array();
    }
}
Add get authors to author model
Add get authors to author model
