<?php



class Model_message extends CI_Model(){

    function __constractor(){

        parent::__construct();
    }

    function insert_message($sender,$message){

        $data=array(

            'nema'=>$sender,
            'message'=>$message
        );

        $inserted=$this->db->insert('message',$data);

        return $inserted;
    }
}
?>