On Wed, May 17, 2006 1:21 pm, Rahul S. Johari wrote:
> I¹m a little confused as to what¹s the best way to handle this.
> I have a form which, apart from lots of other fields, has a set of 25
> 30
> Check Boxes, each of which asks the user for some kind of information
> which
> the user can check
I did something similar recently. Basically I have one MySQL field to
handle several dozen checkboxes, my situation though was where the
checkboxes are numerically sequential though so I am not sure if this
helps. I also had only a couple hours to do this from start to finish
so I am sure t
Martin Alterisio wrote:
2006/5/17, Rahul S. Johari <[EMAIL PROTECTED]>:
...
You should consider using MySQL special column type SET:
http://dev.mysql.com/doc/refman/5.1/en/set.html
Or encoding each checkbox status as a binary bit in an integer
I was going to suggest this also- if n
2006/5/17, Rahul S. Johari <[EMAIL PROTECTED]>:
Ave,
I¹m a little confused as to what¹s the best way to handle this.
I have a form which, apart from lots of other fields, has a set of 25 30
Check Boxes, each of which asks the user for some kind of information
which
the user can check or leave
Well, listing all the values in a comma separated list in the DB would
be fairly simple to parse, check out:
http://www.php.net/manual/en/function.explode.php
As far as what is better depends on many things...
1). Maintaining the code, might be better to have each check box have
its own field,
5 matches
Mail list logo