Page 1 of 1

Data's for checkbox from MySql

Posted: Thu Dec 31, 2009 1:53 am
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.