[TYPO3-core] RFC: MM_foreign_select

René Fritz rene at typo3.org
Wed Mar 8 17:04:41 CET 2006


> Franz Holzinger <franz at fholzinger.com> writes on
>
> Wed, 08 Mar 2006 16:17:12 +0100 (MET):
> > > + foreach($tableArr as $foreignTable) {
> > > + $whereArr[] =
> > > 'tablenames='.$GLOBALS['TYPO3_DB']->fullQuoteStr($foreignTable,
> > > $tableName);
> > > + }
> > > + $where.= ' AND ( '.implode(' OR ', $whereArr).' ) ';
> >
> > Why do you not use 'WHERE tablenames IN ('table1', 'table2', ...
> > 'tablen')' ?
>
> Don't use fullQuoteStr on anything else than values!

I quote a string not an identifier!!

René

-- 
René Fritz
TYPO3 Association - Active Member
http://association.typo3.org/



More information about the TYPO3-team-core mailing list