김
Asked
Hi, I try this way... in controller. and in model.
$data['prdata'] = $this->reports_model->getSalesReport2($rpdata);
$last_qry =$this->db->last_query();
but nothing and not working.
How to get the last query?
$data['prdata'] = $this->reports_model->getSalesReport2($rpdata);
$last_qry =$this->db->last_query();
but nothing and not working.
How to get the last query?
- MSAnsweredHello,
You are trying correct `$this->db->last_query()` to get query. I have not much knowledge as never used it, you can refer to CodeIgniter Documentation.
Thank you - Login to Reply