mercredi 28 janvier 2015

PHP Select single checkbox value from database and assign to a variable

I have in my table from database 3 rows of tinyint type which are called: option1,option2,option3. I want to assing them value to variables $int1,$int2,$int3. + I have in my script 3 checkboxes and I want to check if checkboxes value is equal with checkboxes value from database. For example: if checkbox1 is checked && checkbox2 is checked, in above if, if checkbox1 value == $int1 && checkbox2 value == $int2, I don't know how to make this in my script, can anybody help me? I don't put the script here because I don't have any checkbox in it.





Aucun commentaire:

Enregistrer un commentaire