Return to Snippet

Revision: 32185
at September 20, 2010 21:47 by pogosheep

Initial Code
$GLOBALS['TYPO3_DB']->store_lastBuiltQuery = 1;
echo $GLOBALS['TYPO3_DB']->debug_lastBuiltQuery;

Initial URL

Initial Description
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.

Initial Title
Debug last TYPO3 SQL-Statement

Initial Tags
sql, debug

Initial Language