Matching an ID within an array
I have been scratching my head with this one for a couple hours now. Heres my problem;
i have two databases;
within ROLES i have;
ADMIN(id:1), BLOG(id:2), CMS(id:3)
in CATEGORIES i have;
SECTION1, SECTION2, SECTION3
each CATEGORIE has different roles attached, for example;
SECTION1 can be viewed by ADMIN and CMS - 1,3
SECTION2 can be viewed by ADMIN and BLOG - 1,2
SECTION3 can be viewed by ALL - 1,2,3
I have been trying to show these roles in a checkbox format, for editing purposes.
However im not quite getting it right :(
Any help would be appreciated.
solved this problem with in_array().
|All times are GMT. The time now is 04:51 PM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0