0
如何在$ this-> db-> query()方法中使用codeigniter?CodeIgniter分頁與this-> db->查詢
如果我使用Active Record類,我會做這樣的:
$query = $this->db->get('tb_cash_transaction',$num,$offset);
$this->db->order_by("CURRENCY_ID", "asc");
我現在用的這 - $> DB->查詢()
$query = "SELECT * FROM tb_cash_transaction, tb_currency, tb_user where tb_cash_transaction.CURRENCY_ID=tb_currency.CURRENCY_ID and tb_cash_transaction.USER_ID=tb_user.USER_ID and TYPE='cash_out'";
$query = $this->db->query($query);
如何實現的呢?謝謝。