Debug last TYPO3 SQL-Statement


/ Published in: PHP
Save to your folder(s)

You can get the last query by using the following code.
Insert the first line before the query and TYPO3 will store each query.
You can get the last query with the second line.


Copy this code and paste it in your HTML
  1. $GLOBALS['TYPO3_DB']->store_lastBuiltQuery = 1;
  2. echo $GLOBALS['TYPO3_DB']->debug_lastBuiltQuery;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.