views:

87

answers:

1

What should be the data type that will be entered in phpmyadmin if I plan to use a checkbox as an input?

+1  A: 

The MySQL documentation recommends using tinyint(1) for boolean values, so tinyint(1) is probably the best.

http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html

x3ro
thanks a lot pal
also remember that 0 inside of if() returns false, so you don't need to hack some crazy if statements to check whether its selected or not. just place the cell into the if statement and you are good
antpaw