Mysql Query Question
| From: | Van Andel, Robbert | Date: | Tue, 18 Mar 2003 20:51:56 +0000 |
| Subject: | Mysql Query Question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-140190@lists.php.net to get a copy of this message | ||
I am trying to query a database looking for results that match an array of values I have set.
The variable array is call group and has about 10 elements. Is there a way that I can query the
database using just $group instead of having to use the following:
SELECT * FROM
table WHERE groupname = '$group[1]' OR
groupname='$group[2]' OR groupname='$group[3].....
I think I saw the answer once before but can't find it anywhere.
Robbert van Andel