[eluser]Unknown[/eluser]
Hi.
I want to know how do I get the sql string what was generated by active records class.
For example, I have this code:
$this->db->select('*');
$this->db->where('id',3);
$this->db->where('name','test');
$this->db->from('my_table');
$query=$this->db->get();
The class generates something like
"select * from my_table where id=3 and name='test'"
How do I get this sql string ?
Thanks