Data's for checkbox from MySql

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sheru2302
Forum Newbie
Posts: 4
Joined: Fri Dec 18, 2009 8:55 pm

Data's for checkbox from MySql

Post by sheru2302 »

Hi everyone,

Im pretty new here. Also realy new to PHP and MySql. In my current company they separate the html, php, css, classes codes to different different files. I just want to know, how to create a checkbox list that are create based on datas from database. Basically its about giving access to new users and also editing the access. Lets say:

a.in database we have options like:
-access to delete
-access to add
-access to edit
-access to view.

b.i want all to be listed unchecked for new user and checked for old user (so we can edit the access).

c.i wanted to hav a refresh button to, so all d checkbox will be unchecked once it clicked.(should be easy, ill search for the codes but if you can provide ill be happy.
Post Reply