I have a form with checkboxes
<input type="checkbox" name="yo[1]" value=1
<input type="checkbox" name="yo[2]" value=1
<input type="checkbox" name="yo[3]" value=1
I want to to insert values into db exactly like this
create table tablename
yo1 tinyint default 0 , yo2 tinyint default 0, yo3 tinyint default 0
insert into table
set yo1=value, yo2=value, yo3=value
How do I do that? (dont want to loop/implode yo[])
/total newbie hoping for some help