samedi 26 août 2017

PHP checkboxes database

I have been unable to get my code to after many hours of attempts. This is a very simple problem but i can't make sense of it so i have come here. So what my code does is check if the checkboxes have been checked and record it as a 1(false) or 2(true)Just look at the checkboxes My code below then should use that input to show the right tables from my database. This is the code that is broken (sorry about it being a image i could not figure out how to format code on this website

So what the problem is When only one checkbox is checked it shows the right table but if i check all 3 it shows only one (the one with printf("spell"))

Dose anyone have any idea what is going wrong.




Aucun commentaire:

Enregistrer un commentaire