Mailinglisten-Archive | 
Hi,
> Mathias Gloss schrieb:
[...]
> $sWhere = "0 = 1";
> preg_match_all("°<!--category:([0-9]+)-->°",$quellcode, $aMatches);
> for ( $i = 0; $i < $aMatches[1]; $i++ ) {
>   $sWhere .= ' OR id = '.$aMatches[1][$i];
> }
> $sql = "select  * from tabelle where $sWhere";
fuer soetwas verwende ich gerne expr IN (value,...), d.h. hier z.B.
   select  * from tabelle where id IN (0, 1, ...);
-> http://dev.mysql.com/doc/mysql/en/Comparison_Operators.html#IDX1233
:-)
Viele Gruesse
Lutz
    php::bar PHP Wiki - Listenarchive