Welcome Guest, Not a member yet? Register   Sign In
How to echo statement of query with Active Record
#2

(This post was last modified: 02-15-2016, 02:31 AM by XMadMax.)

(02-15-2016, 02:05 AM)SDir Wrote: Hello, 

how can I echo the statement of a query when I use code as this?
PHP Code:
$this->db->from($this->table); 

thank you

Use :

PHP Code:
echo $this->db->last_query(); 

Other usefull query utilities :
http://www.codeigniter.com/user_guide/da...ert_string
Reply


Messages In This Thread
RE: How to echo statement of query with Active Record - by XMadMax - 02-15-2016, 02:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB