[TYPO3-dev] pi_getRecord

Dmitry Dulepov [typo3] dmitry at typo3.org
Tue Jun 17 09:28:01 CEST 2008


Hi!

Sebastiaan van Parijs wrote:
> Guys any idea on how i can Debug or preferable solve this issue?

Preferable solution:

$rows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('*', 'table_name',
		$yourWhere . $this->cObj->enableFields('table_name'));
if (count($rows) > 0) {
	$record = $row[0];
	...
}

-- 
Dmitry Dulepov
E-mail: dmitry at typo3.org
Skype: callto:liels_bugs
TYPO3 technical: http://typo3bloke.net/




More information about the TYPO3-dev mailing list