Bogdan Stancescu wrote:
> In HTML:
> <SELECT name="manufacturernames[]" multiple>
> (note the name has PHP-like array definition)
>
> In PHP:
> for ($i=0;$i<sizeOf($manufacturernames);$i++) {
> if ($i==0) {
> $q_cond="where";
> } else {
> $q_cond="or";
> }
> $query.="$q_cond MANUFACTURER LIKE '$manufacturernames[$i]' ";
>
> }
You'll have to add another space at the beginning/end of the appended string for
the query to be ok...
Bogdan
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]