Welcome Guest, Not a member yet? Register   Sign In
how i can make this query
#1

[eluser]tnathos[/eluser]
hi, i have a dude.. how i can make this query..

select * from table where field1=1 and fiedl2 > field3

i have this.. but doesnt works...

Code:
$this->db->select('field4, field5');
        $this->db->where('field1',1);
        $this->db->where('fiedl2 > field3');
#2

[eluser]suba[/eluser]
Hi,
$where=array('field1'=>'1','field2 >'=>'field3');
$query=$this->db->get_where($table,$where);
#3

[eluser]tnathos[/eluser]
thanks




Theme © iAndrew 2016 - Forum software by © MyBB