Welcome Guest, Not a member yet? Register   Sign In
Stuffing array into active record insert
#2

[eluser]gtech[/eluser]
I would set $p to the following and see if that works (thats how I use the insert and it works for me).
Code:
...
$p = array('first_name' => 'Steve',
           'middle_initial' => 'S',
           'last_name' => 'Finkelstein',
           'room_number' => '301'
           'cpt_id' => '1');

$this->insert_patient($p);
...

function insert_patient($p) {
        log_message('debug', "testing for \$p: ".print_r($p, TRUE));
        $this->db->insert('ms_patients', $p);
    }


Messages In This Thread
Stuffing array into active record insert - by El Forum - 11-05-2007, 10:25 AM
Stuffing array into active record insert - by El Forum - 11-05-2007, 11:13 AM
Stuffing array into active record insert - by El Forum - 11-05-2007, 11:58 AM
Stuffing array into active record insert - by El Forum - 11-05-2007, 12:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB