[eluser]Joshee[/eluser]
Code:
$like = array(
'date' => $this->uri->segment(3),
'date' => $this->uri->segment(4)
);
$this->db->like($like);
It works, but it only grabs the database items where the 'date' field is LIKE $this->uri->segment(4). It doesn't grab the database items where the 'date' field is LIKE $this->uri->segment(3) AND the 'date' field is LIKE $this->uri->segment(4).
Basically it's not getting the database items where the 'date' field is LIKE both of the array items I set.
But if I make the code:
Code:
$this->db->like('date', $this->uri->segment(3);
$this->db->like('date', $this->uri->segment(4);
It grabs the datebase items where the 'date' field is LIKE both of the values.
If that makes sense I would like to know if there is a way to fix it.
Thanks.