Welcome Guest, Not a member yet? Register   Sign In
Using stored functions in Active Record
#4

[eluser]arslan ali[/eluser]
i was looking for following query

Code:
SELECT * FROM (`banners`) WHERE banner_type = Menu AND status =Active AND start_date>=current_date() ORDER BY `id` desc


After looking above post i tried this code and it worked magically for me.


Code:
$this->db->select(*);
$this->db->from('banners');
$this->db->where(array('banner_type'=>'Menu','status'=>'Active','start_date>=current_date()'=>"",'end_date>=current_date()'=>""))


Messages In This Thread
Using stored functions in Active Record - by El Forum - 12-17-2007, 12:57 AM
Using stored functions in Active Record - by El Forum - 12-17-2007, 02:06 AM
Using stored functions in Active Record - by El Forum - 12-17-2007, 08:43 AM
Using stored functions in Active Record - by El Forum - 10-06-2008, 01:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB