• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selecting between a date

#11
[eluser]E303[/eluser]
I re-wrote it like this and it worked thanks.
Code:
$this->db->select('exhibitionsId, title, url, picture, date, endDate');
            $this->db->from('exhibitions');
            $this->db->where('date <=', $date);
            $this->db->where('endDate >=', $date);
            $whatsOn_data = $this->db->get();
            return $whatsOn_data->result_array();


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.