view last executed query

Stimulsoft Reports.PHP discussion
Post Reply
alocin
Posts: 4
Joined: Thu Jan 23, 2014 12:05 pm

view last executed query

Post by alocin »

How can view last executed query? I mean, I would like to see somewhere in the report or in a log file the sql used for the report.
Thank you!

Nicola
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: view last executed query

Post by HighAley »

Hello, Nicola.

To save last SQL query you could make next changes in the handler.php file.

Find

Code: Select all

$query = base64_decode($query);
line in the sti_client_event_handler() function.

Add next line after this one:

Code: Select all

file_put_contents("last_query.txt", $query);
The last_query.txt will content the last SQL query.

Thank you.
Post Reply