CodeIgniter Insert查询使用0值进行额外输入

When I trying to insert some values, MySQL shows double entry. The first entry is correct, but second entry contains only zeros. Kindly help me..

enter image description here

My Controller codes are here:

$config['upload_path'] = './img/trainees/';
            $config['allowed_types'] = 'gif|jpg|png';
            $config['max_size']        = '200';
            $config['max_width']  = '1024';
            $config['max_height']  = '768';
            $this->load->library('upload', $config);
            $imgname ='';
            if($this->upload->do_upload())
             {
       $data = $this->upload->data();
       $imgname = $data['raw_name'].$data['file_ext'];
      }

Above code is used to upload images in controller.. Remaining codes:

           $this->load->model('newmodel');

            $this->newmodel->NAME = $this->input->post("name");
            $this->newmodel->AGE = $this->input->post("age");
            $this->newmodel->PLACE = $this->input->post("place");
            $this->newmodel->ADDRESS = $this->input->post("address");
            $this->newmodel->PHONE = $this->input->post("phone");
            $this->newmodel->MAIL = $this->input->post("email");
            $this->newmodel->QUALI = $this->input->post("qualification");
            $this->newmodel->OCCUP = $this->input->post("occupation");
            $this->newmodel->MILMAID = $this->input->post("memberID");
            $this->newmodel->COURSE = $this->input->post("course");
            $this->newmodel->CENTRE  = $this->input->post("centre");
            $this->newmodel->REGDATE = date('d/m/Y');
            $this->newmodel->IMGNAME= $imgname;


            $mydata = $this->newmodel->insertuserdata();        

        $data = array(
    'name' => $this->newmodel->NAME,
    'age' => $this->newmodel->AGE,
            'place' => $this->newmodel->PLACE,
            'address' => $this->newmodel->ADDRESS,
            'phone' => $this->newmodel->PHONE,
            'email' => $this->newmodel->MAIL,
            'quali' => $this->newmodel->QUALI,
            'occup' => $this->newmodel->OCCUP,

            'milmaid' => $this->newmodel->MILMAID,
            'course' => $this->newmodel->COURSE,
            'centre' => $this->newmodel->CENTRE,
            'regdate' => $this->newmodel->REGDATE,
            'imgname' => $this->newmodel->IMGNAME,
               );
    $this->load->helper('url');     
        $this->load->view('users/admitcard',$data);

My Model codes are seem like this:

var $NAME = '';        
    var $AGE = 0;
    var $PLACE = '';
    var $ADDRESS = '';
    var $PHONE = 0;
    var $MAIL = '';
    var $QUALI = '';
    var $OCCUP = '';
    var $MILMAID = '';
    var $COURSE = '';
    var $CENTRE = '';
    var $REGDATE = '';
    var $IMGNAME ='';
public function insertuserdata(){


    $this->load->database();
    $datas = array(        
 'Tname' => $this->NAME,
 'Tage' => $this->AGE,
 'Tplace' => $this->PLACE,
 'TAddres' => $this->ADDRESS,
 'Tph' => $this->PHONE,
 'Tmail' => $this->MAIL,
 'Tqualification' => $this->QUALI,
 'Toccupation' => $this->OCCUP,
 'TmilmaMemb' => $this->MILMAID,
 'Tcourse' => $this->COURSE,
 'Tcentre' => $this->CENTRE,
 'regDate' => $this->REGDATE
  );
$this->db->insert('tbl_trainers', $datas);

Try this code on your model

public function insertuserdata(){


    $this->load->database();

    $datas = array( 
     'Tname' => $this->input->post("name"),
     'Tage' => $this->input->post("age"),
     'Tplace' => $this->input->post("place"),
     'TAddres' => $this->input->post("address"),
     'Tph' => $this->input->post("phone"),
     'Tmail' => $this->input->post("email"),
     'Tqualification' => $this->input->post("qualification"),
     'Toccupation' => $this->input->post("occupation"),
     'TmilmaMemb' => $this->input->post("memberID"),
     'Tcourse' => $this->input->post("course"),
     'Tcentre' => $this->input->post("centre"),
     'regDate' => date('d/m/Y')
      );
    $this->db->insert('tbl_trainers', $datas);

}   

And simply call this model on your controller. Now your controller look like this-

public function yourMethod(){

      $this->load->model('newmodel');
      $this->newmodel->insertuserdata();

     # And your rest code here...
}