The next select returns a clear result set, even though it shoudn't:

$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'tx_xmluploader_xml_import_tree', 'xml_import_id='.$xml_import_id);

$xml_import_id is placed. And delay pills work basically take away the where clause..


I still do not understand why it does not work.. An easy workaround recommended with a coleague:

// select all from the db     
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'tx_xmluploader_xml_import_tree');

while( $entry = $GLOBALS['TYPO3_DB']->sql_fetch_assoc() )
   if( $entry['xml_import_id'] == $xml_import_id ) {

First, make certain this is occur localconf.php:

$TYPO3_CONF_VARS['SYS']['sqlDebug'] = '1';   
$TYPO3_CONF_VARS['FE']['debug'] = '1';  

Then try

$res = $GLOBALS['TYPO3_DB']->SELECTquery('*', 'tx_xmluploader_xml_import_tree', 'xml_import_id='.$xml_import_id);

Outcome is the creation of the query within the frontend. After that you can carry it out in MySQL for debugging.

a) make certain $xml_import_id really includes a value (the one that is incorporated in the database too)

b) Do this:

$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(

How can you process the end result? So how exactly does your expected $xml_import_id value seem like?

cu Roman