MySQL table data question?

Posted by mySQL on Stack Overflow See other posts from Stack Overflow or by mySQL
Published on 2010-03-08T21:53:57Z Indexed on 2010/03/09 0:51 UTC
Read the original article Hit count: 211

Filed under:

How should my Mysql table data look like for a single checkbox that checks and see if the user has said yes if its clicked or no if its not?

Here is the checkbox.

<input type="checkbox" name="yes" id="yes" value="yes" />

I was wondering how would I add it to the following table.

CREATE TABLE IF NOT EXISTS `vote` (
`counter` int(8) NOT NULL default '0',
`value` int(8) NOT NULL default '0'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

© Stack Overflow or respective owner

Related posts about mysql