Show SQL Statement
Show SQL Statement

Hi,
how can I show in the browser the SQL Statement (select) ?
I tried with debug and debugInfo but I have no success.
Also tried console.log
Thank you
This discussion has been closed.
Hi,
how can I show in the browser the SQL Statement (select) ?
I tried with debug and debugInfo but I have no success.
Also tried console.log
Thank you
Replies
Hi @karasu ,
This thread should help, it's asking the same thing.
Cheers,
Colin
Hi @colin , thank you for your fast reply.
In the php-file I paste it like
Editor::inst( $db, 'rooms', 'uid' )
->debug(true)
But where I can see the output or have I missing some more code?
Hi @karasu ,
It'll be in the JSON returned back to the client. So, if you look in the client's developer tools, you should see it under the "network" tab,
Cheers,
Colin
Hi @colin ,
this is correct that I can see whole data I get back but
I cannot see the SQL select statement in this JSON.
Have I implement more code ?
This is my PHP file
This is my JS File
Flip these two lines:
The
debug
must be enabled for process to be able to use it, and its sequential!Allan
Hi @allan ,
it works. Now I can see the select statements.
Thank you.
@allan
How can I close this ticket or mark as answered ?
Hi @karasu ,
I think if you hover a message and click the cog, you have an option to make the reply as the answer - to be honest, I've never done it
Cheers,
Colin