Welcome Guest, Not a member yet? Register   Sign In
Quick Question - DB - Active Record and NULL values
#1

[eluser]MEM[/eluser]
Hello,


I had this working:
Code:
$query=$this->db->get_where('category', array('parent_id_cat'=>NULL));

I wanted to add more where clauses on it:
Code:
$this->db->where('activa_cat =', 1);
$this->db->where('parent_id_cat =', NULL);

But this last line gives me an error. He is not accepting the NULL param.


What am I doing wrong?


Regards,
Márcio


Messages In This Thread
Quick Question - DB - Active Record and NULL values - by El Forum - 08-29-2009, 08:24 AM
Quick Question - DB - Active Record and NULL values - by El Forum - 08-29-2009, 08:41 AM
Quick Question - DB - Active Record and NULL values - by El Forum - 08-29-2009, 09:06 AM
Quick Question - DB - Active Record and NULL values - by El Forum - 08-29-2009, 09:19 AM
Quick Question - DB - Active Record and NULL values - by El Forum - 08-29-2009, 09:27 AM
Quick Question - DB - Active Record and NULL values - by El Forum - 08-29-2009, 09:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB