0

How to store checkbox in db using php

I have to show different output for different value stored in checkbox(4 fields)..how to store whether its checked or not

3rd Mar 2020, 7:08 AM
Vaishali Bishtaniya
8 Antworten
0
store them as boolean
3rd Mar 2020, 7:12 AM
Taste
Taste - avatar
0
U mean boolean datatype in db?
3rd Mar 2020, 7:21 AM
Vaishali Bishtaniya
0
yes
3rd Mar 2020, 7:22 AM
Taste
Taste - avatar
0
#Whyfry. Did i have to repeat this if condition code 4 times...for my 4 different fields?
3rd Mar 2020, 7:30 AM
Vaishali Bishtaniya
0
Yeah.. thanks for your valuable words. #taste &#whyfry...it helps me
3rd Mar 2020, 8:01 AM
Vaishali Bishtaniya
0
What if i have to show different output for different checkbox field selected in next page
13th Mar 2020, 5:51 AM
Vaishali Bishtaniya