maccam, that's kind of a vague description of the problem, so I can only give you a vague answer. this might help, though, just in how you're thinking about the situation and maybe it will solve your (specific) problem.
essentially, you have two separate things to do here: one is process a form with checkboxes and store the data in the database, and the other is to read those values from the database later and change the display on the page based on what you retrieve.
THE BEST POSSIBLE WAY TO APPROACH THIS IS TO TACKLE THOSE TWO PROBLEMS SEPARATELY.
so first, get your form set up with the checkboxes etc and be sure it is putting the right info into the database. period. done.
then, go to the display page and have it read the values from the db and work with them as appropriate.
like I said, vague, but hope it helps. if you can get more detailed I can try to help further.
best
Eric