Welcome Guest, Not a member yet? Register   Sign In
Active Records
#2

[eluser]JamieBarton[/eluser]
I think that this could work:

Code:
$seg3 = $this->uri->segment(3)

Code:
$this->db->where('b.cat_id', '$seg3 OR b.state_id = null);

Give that a try, I'm also new to CI.

Smile


Messages In This Thread
Active Records - by El Forum - 03-04-2010, 08:13 PM
Active Records - by El Forum - 03-05-2010, 02:42 AM
Active Records - by El Forum - 03-05-2010, 02:56 AM
Active Records - by El Forum - 03-05-2010, 07:45 AM
Active Records - by El Forum - 03-05-2010, 09:07 AM
Active Records - by El Forum - 03-05-2010, 01:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB