Guest papas Posted October 23, 2009 Report Share Posted October 23, 2009 i would like to know what type,collation,chatacteristics,null ,e.t.c. we put for radio button and checkbox in the tables of mysql databases that we have made parallels plesk control panel. thanks Link to comment Share on other sites More sharing options...
Kameloh Posted October 23, 2009 Report Share Posted October 23, 2009 For checkboxes I use TINYINT(1) since it can store values 0 and 1 efficiently. You can also use TINYINT for radio buttons but if the values are greater than 10 you should at least make TINYINT(2) instead of 1.You can also set the default values to 0 in the database. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now