Welcome Guest, Not a member yet? Register   Sign In
$this->db->lastquery() not working
#11

[eluser]searain[/eluser]
Hi, did you figure out what is the problem?

I have the same issue now.

echo $this->db->last_query();

Just return nothing but the query was successful.
#12

[eluser]InsiteFX[/eluser]
Change the name of your Model to like Some_model!

InsiteFX
#13

[eluser]searain[/eluser]
found out my problem. My database default set up set $db['default']['save_queries'] = FALSE;

Because queries are not saved, so last_query won't return anything.

I need to add this line before the query to get $this->db->last_query();

$this->db->save_queries = true;




Theme © iAndrew 2016 - Forum software by © MyBB