• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
View query before being executed?

#1
[eluser]jrlooney[/eluser]
Hello,

How can I dump the query that $this->db is going to execute so that I can review it?

So, for example, for this query, I'd like to see the SQL (even if I just var_dump it):

Code:
$this->db->limit(0,$this->per_page);
$this->db->select('contact_id,first_name,last_name');
$data['query'] = $this->db->get('cm_contact');

thanks in advance


Messages In This Thread
View query before being executed? - by El Forum - 09-04-2008, 09:20 AM
View query before being executed? - by El Forum - 09-04-2008, 11:54 AM
View query before being executed? - by El Forum - 09-05-2008, 08:01 AM
View query before being executed? - by El Forum - 09-05-2008, 08:12 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.