Welcome Guest, Not a member yet? Register   Sign In
Model/Database question
#2

[eluser]Michael Wales[/eluser]
The best way to accomplish inserts and updates is to place all of your variables into an array and pass that array to the function:

Code:
$insert = array('doctor_first_name'=>$this->input->post('doctor_first_name'),
     'doctor_last_name'=>$this->input->post('doctor_last_name'));
$this->db->insert('nsfma_doctor', $insert);


Messages In This Thread
Model/Database question - by El Forum - 08-18-2007, 01:37 PM
Model/Database question - by El Forum - 08-18-2007, 02:19 PM
Model/Database question - by El Forum - 08-18-2007, 02:29 PM
Model/Database question - by El Forum - 08-18-2007, 02:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB