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
2010-01-30 13:22:15
thanks a lot pal
2010-01-30 13:23:18
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
2010-01-30 13:25:04