[TYPO3-dev] Extending news_author_rel: a typo3 and SQL question

Ingmar Schlecht ingmar at typo3.org
Sat Mar 25 19:32:45 CET 2006


Pieter wrote:
> function findInSet_whereClause($field,$list) {
>     $items = t3lib_div::trimExplode(',',$list);
>     $whereClause .= 'AND (0 ';

"AND (0 OR..." won't work with other DBs than MySQL. Use "AND (1=0"
instead or avoid it completely.

cheers,
Ingmar




More information about the TYPO3-dev mailing list