Welcome Guest, Not a member yet? Register   Sign In
question about active records / db
#1

[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


Messages In This Thread
question about active records / db - by El Forum - 10-12-2007, 01:54 AM
question about active records / db - by El Forum - 10-12-2007, 08:08 AM
question about active records / db - by El Forum - 10-12-2007, 11:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB