Welcome Guest, Not a member yet? Register   Sign In
Can not use Active Record for simple query?
#10

[eluser]Phil Sturgeon[/eluser]
Sure you can.

Code:
$this->db
  ->where("(receiver_id = {$user_id} OR creator_id = {$user_id} OR receiver_id = 0)", NULL, FALSE)
  ->where('deleted', 1)
  ->get('messages');


Messages In This Thread
Can not use Active Record for simple query? - by El Forum - 03-04-2011, 02:53 AM
Can not use Active Record for simple query? - by El Forum - 03-04-2011, 03:54 AM
Can not use Active Record for simple query? - by El Forum - 03-04-2011, 04:00 AM
Can not use Active Record for simple query? - by El Forum - 03-04-2011, 04:05 AM
Can not use Active Record for simple query? - by El Forum - 03-04-2011, 04:21 AM
Can not use Active Record for simple query? - by El Forum - 03-04-2011, 04:26 AM
Can not use Active Record for simple query? - by El Forum - 03-04-2011, 04:42 AM
Can not use Active Record for simple query? - by El Forum - 03-04-2011, 06:08 AM
Can not use Active Record for simple query? - by El Forum - 03-04-2011, 06:14 AM
Can not use Active Record for simple query? - by El Forum - 03-04-2011, 06:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB