[Typo3-dev] bug in class.t3lib_page.php?

Stefan Beylen intsys at swissinfo.org
Wed Aug 10 10:17:54 CEST 2005


Martin Kutschker wrote:
> Without looking up in the code, but some TYPO3 APIs require you start your 
> WHERE clause with an AND.

thx masi...the error is gone, but I get no results returned...

doesnt work:
----8<-----
else 
$record=$GLOBALS['TSFE']->sys_page->getRecordsByField('tx_sbproducts_translations','l18n_parent',$_GET['detail'],'AND 
sys_language_uid='.$currentlang);
----8<-----

works:
----8<-----
else{
	$temp_res=mysql_query("SELECT * FROM tx_sbproducts_translations WHERE 
sys_language_uid=".$currentlang." AND l18n_parent=".$_GET['detail']);
	$record=mysql_fetch_array($temp_res);
}
----8<-----

my wrong?




More information about the TYPO3-dev mailing list