Posted By

pogosheep on 09/20/10


Tagged

sql debug typo3


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

etobi
FazzyX
ekarakas


Debug last TYPO3 SQL-Statement


 / Published in: PHP
 

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.

  1. $GLOBALS['TYPO3_DB']->store_lastBuiltQuery = 1;
  2. echo $GLOBALS['TYPO3_DB']->debug_lastBuiltQuery;

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: pogosheep on March 21, 2011

Write and execute your query between this two lines. The first line saves the query, the second line will display it.

You need to login to post a comment.