We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

[Answered by community member] Represent a Checkbox Group as an integer | Forum

Stuart
Stuart May 8 '15
Hi guys,


I have been away from development for a while.


Is there anyway to turn a checkbox array into a bitmap and also back again when needed.


Looking at profile questions it would look like oxwall do it but struggling to find the methods.


Anyone any tips as have been scratching my dumb head for some time now.


Also having a forum is great, how does the admin as do the think we could have a few more sections to split up dev needs into some sort of logical organisation?

The Forum post is edited by Alia May 15 '15
Stuart
Stuart May 8 '15
Dumb really in oxwall I think the create another table that has binary bit vales and a sort order.


I am just going to use implode and explode and store the arrays as a string

Nickolay
Nickolay May 14 '15
If it suits you - yes, but I suggest you rather create a new table with userIdfieldValue and ordering fields. And then save your each value as a separate record. That would be a much better manageble approach (so you can easily filter by this field and so on).
Stuart
Stuart May 18 '15
Thanks been lazy and store them as CSV its done the job and know you are right :)