mardi 13 décembre 2016

How to recover checked and not checkboxes depending of a row values 1,2,5,6

i have a table with a column called "roles" indicating roles of persons in this way "1,3,6.." and other table with this roles names. Any id coincides with a role.

i'm trying to print all roles as checkboxes and checked if the person has any of these roles.

i was trying with implode and explode without result, Can you guide me?

'.($row['name']).'

Aucun commentaire:

Enregistrer un commentaire