Welcome Guest, Not a member yet? Register   Sign In
Ways to wrtie in Active Record
#5

(This post was last modified: 12-12-2014, 05:08 PM by bclinton.)

I personally don't find chaining any clearer.  For more complex queries I like blank lines between my select, join, order_by, etc statements for code clarity so chaining is not an option


Code:
$this->db->select('');
$this->db->select('');

$this->db->from('')

$this->db->where('')

$this->db->order_by('')

$this->db->limit('')
Reply


Messages In This Thread
Ways to wrtie in Active Record - by Shawn P - 10-23-2014, 01:14 PM
RE: Ways to wrtie in Active Record - by Rufnex - 10-23-2014, 01:35 PM
RE: Ways to wrtie in Active Record - by peterdenk - 10-23-2014, 02:07 PM
RE: Ways to wrtie in Active Record - by mwhitney - 12-12-2014, 01:51 PM
RE: Ways to wrtie in Active Record - by bclinton - 12-12-2014, 05:08 PM
RE: Ways to wrtie in Active Record - by mwhitney - 12-15-2014, 10:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB