Welcome Guest, Not a member yet? Register   Sign In
method chaining
#1

[eluser]praveenarya[/eluser]
hi all,
using method chaining system i have written like
Code:
$this->db->select('*')->from('tbl_orders')->where('status=0 group by ref_id order by id desc');

                  $query = $this->db->get();

but i am getting error
Unknown column 'status=0' in 'where clause'
the quotation should be 'status'=0 instead it is placing as above

thanks in advance


Messages In This Thread
method chaining - by El Forum - 07-22-2009, 05:14 AM
method chaining - by El Forum - 07-22-2009, 05:22 AM
method chaining - by El Forum - 07-22-2009, 05:25 AM
method chaining - by El Forum - 07-22-2009, 05:37 AM
method chaining - by El Forum - 07-22-2009, 05:52 AM
method chaining - by El Forum - 07-22-2009, 05:57 AM
method chaining - by El Forum - 07-22-2009, 06:21 AM
method chaining - by El Forum - 07-22-2009, 06:28 AM
method chaining - by El Forum - 07-22-2009, 06:42 AM
method chaining - by El Forum - 07-22-2009, 06:47 AM
method chaining - by El Forum - 07-22-2009, 06:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB