Einzelnen Beitrag anzeigen
  #4  
Alt 18.03.08, 12:22
boxi boxi ist offline
Forum Zuschauer
 
Registriert seit: 19.09.06
Alter: 25
Beiträge: 7

function getUid($keyword)
{
$pidList = $this->pi_getPidList($this->conf["pidList"], $this->conf["recursive"]);

$keyword = $GLOBALS['TYPO3_DB']->fullQuoteStr($keyword,'tx_drwiki_pages');

// The newest version has the highest uid

$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('MAX(uid) AS uid','tx_drwiki_pages',
'tx_drwiki_pages.pid IN ('.$pidList.')'.$this->cObj->enableFields("tx_drwiki_pages").' AND keyword='.$keyword,
'','uid DESC','1');

$row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
return $row["uid"];
}



'','uid DESC','1'); muss in '','uid',''); geändert werden!

PS: Habs doch noch geschafft ;-)
Mit Zitat antworten