Welcome Guest, Not a member yet? Register   Sign In
Inserting NULL values into MySQL from Codeigniter[SOLVED]
#5

[eluser]jedd[/eluser]
Now, can you try this, just out of curiosity.
Code:
$this->db->set('ID_PAR' , 'NULL', TRUE)->where( ... )->update('MYTABLE');

Actually, try this too while you're at it:

Code:
$this->db->set('ID_PAR = NULL' , '');

Oh, and this should work too:
Code:
$this->db->update('MYTABLE' ,array('ID_PAR' => NULL));


Messages In This Thread
Inserting NULL values into MySQL from Codeigniter[SOLVED] - by El Forum - 11-27-2009, 01:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB