Welcome Guest, Not a member yet? Register   Sign In
Simple Query problem

hi all

i'm trying to select data in this way but it is,i guess, really wrong:
$order_1=$this->db->order_by("hours", "asc");

which is the better way to write this simple query....i did can't find an example Sad

thanks for supporting Wink

Something like this?
$data['query'] = $this->db->order_by("hours", "asc")->limit(1)->get('table');

perfect!!! really thanks n0xie Wink

Theme © iAndrew 2016 - Forum software by © MyBB