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

[eluser]Unknown[/eluser]
Hi all!

I would like to know how can I get sorted data from active record class

I have the following query
Code:
$this->db->select('code, name, date, balance, fit, balance-fit, clientbalance, clientbalance-balance');
$this->db->from('charges');
$this->db->join('accounts', 'accounts.id = charges.account_id');
$this->db->where('charges.client_id', $_POST['client']);
$query = $this->db->get();
Thx!
#2

[eluser]Unknown[/eluser]
I haven't read this
Code:
$this->db->orderby("title", "desc");

Smile




Theme © iAndrew 2016 - Forum software by © MyBB