php - TYPO3 mm-Query giving me no output and no error -


i've tried output data 2 linked tables , had @ examples find, i'm still not getting results. (note: i've tried exec_selectquery on either table , worked charm)

so here's code

$globals['typo3_db']->debugoutput = true;  $res = $globals['typo3_db']->exec_select_mm_query(   'tx_pagecat_category.title',  // $select_fields   'tx_pagecat_category',    // $local_table   'pages_tx_pagecat_category_mm',   // $mm_table   'pages',  // $foreign_table   '',   //$where_clause   '',   // $groupby   '',   // $orderby   ''    // $limit );  while( $row = $globals['typo3_db']->sql_fetch_assoc($res) ) {     $c= $row['tx_pagecat_category.title'].chr(10); }  return $this->pi_wrapinbaseclass($c); 

i have absolutely no idea i'm doing wrong, debug-output not working?

probably easiest way is:

$globals['typo3_db']->store_lastbuiltquery = 1;  // query here  echo $globals['typo3_db']->debug_lastbuiltquery; 

that give sql sent db. can run query manually check what's wrong.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -