Welcome Guest, Not a member yet? Register   Sign In
Last_Query Function... HELP
#1

[eluser]Unknown[/eluser]
When trying to use the last_query() function I am getting a result of "DESCRIBE 'sometable'". I am using datamapper and have also tried using the check_last_query(), but get the same results.

Here is an example of what I am doing.

Code:
$store = new Store();
$store->get();
echo $store->db->last_query();

which results in:

DESCRIBE `loc_stores`

Any thoughts on to how to get this to show correctly?
#2

[eluser]Aken[/eluser]
No way of knowing based on that code. We have no idea what $store->get() is supposed to do. Also if you're using DataMapper, there could be other code in there I'm not familiar with.




Theme © iAndrew 2016 - Forum software by © MyBB