phpbar.de logo

Mailinglisten-Archive

[php] wildcard bei select..?

[php] wildcard bei select..?

Stephan Noller Stephan.Noller_(at)_uni-koeln.de
Wed, 8 Dec 1999 08:16:20 +0100


> $result = mysql_query("SELECT * FROM $mytable WHERE typ='%' and
> farbe='rot' and raeder='4'",$db);

Nimm "like" anstelle von "=":

 $result = mysql_query("SELECT * FROM $mytable WHERE typ like '%' and
 farbe like 'rot' and raeder like '4'",$db);

Stephan


php::bar PHP Wiki   -   Listenarchive