Welcome Guest, Not a member yet? Register   Sign In
insert not working.
#3

[eluser]reghan[/eluser]
Hello.

I have tried that and it still does not work. its getting stuck at this form validation:

Code:
if ($this->form_validation->run() == FALSE)
   {
  
              $data['message'] = 'it is going here.ERROR NOT INSERTING';
   }
  
  else
  {
   // save data
   $system = array('SystemName' => $this->input->post('sysname'),
     'Servers' => $this->input->post('server'),
     'HA' => $this->input->post('ha'),
     'DR' => $this->input->post('dr'),
     'Desc' => $this->input->post('descrip'),
     'Class' => $this->input->post('class'),
     'LowestRTO' => $this->input->post('lowRTO'),
     'LowestRTOProcess' => $this->input->post('lowProcess'),
     'LowestRTODept' => $this->input->post('lowDept'));
  
  
     $this->department_model->saveSystem($system);
    // set user message
   $data['message'] = '<div class="success">add new person success</div>';
   }

The message in my view is that ERROR NOT INSERTING, so for some reason its returning a false validation. THis is what I am stuck on and unsure why...or what I need to change in my code.

Thanks again!


Messages In This Thread
insert not working. - by El Forum - 06-11-2012, 11:29 AM
insert not working. - by El Forum - 06-11-2012, 11:55 AM
insert not working. - by El Forum - 06-11-2012, 12:01 PM
insert not working. - by El Forum - 06-11-2012, 12:03 PM
insert not working. - by El Forum - 06-11-2012, 12:05 PM
insert not working. - by El Forum - 06-11-2012, 12:10 PM
insert not working. - by El Forum - 06-11-2012, 12:12 PM
insert not working. - by El Forum - 06-11-2012, 12:14 PM
insert not working. - by El Forum - 06-11-2012, 12:16 PM
insert not working. - by El Forum - 06-11-2012, 12:17 PM
insert not working. - by El Forum - 06-11-2012, 12:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB