close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

multiple criteria selection

Thread began 2/04/2010 11:42 pm by erikpost371097 | Last modified 2/07/2010 11:26 am by erikpost371097 | 1310 views | 2 replies


multiple criteria selection

In my table of contacts, all contacts have a category (=numeric value). Now I want to be able to select contacts in one or more categories (for instance "Family"+ "Team mates" + "Colleagues", "Team mates" + "Colleagues" or "Family" only).

For this, I made in Dreamweaver a selection page with a select list.
In this list, the names of my categories appear, and the corresponding value is selected when the category is selected.

The resulting value of the select list is send with $_POST['result'] to the next page. So far, no problem. I need some help however in using $_POST['result'] in my MySQL statement.

I tried ...WHERE r_categorie in ($_POST['result']).... This works fine when only one contact category is selected.
When more categories are selected, this WHERE clause gives only the last one that was selected in the select list.

What should I change? Is the select list the most appropriate way of making the selection (knowing that the category list is dynamic)?

Any help will be greatly appreciated.

Kind regards,


Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...