mercredi 7 décembre 2016

How to make a working PHP checkbox filter

I can't figure out how to make a filter in PHP using checkboxes. It's for filtering in a mysqli database and it just doesn't want to work. Does someone maybe knows a simple way of doing it?

I want to it that way so if you have in your Database

+-----+-----+
|Name |Place|
+-----+-----+
|Test1|Room1|
+-----+-----+
|Test2|Room2|
+-----+-----+

If you then have a checkbox with a value Test1 and one with Test2. Then if you check the Test1 it would output only Test1 and if you check Test2 it would only output Test2. With the mathching Place ofcourse.

I really hope someone can help me with this!

Aucun commentaire:

Enregistrer un commentaire