Jump to content

PHP Help


SAFCliam91

Recommended Posts

I have a database structure as follows,

 

 

Table structure for table staff

Column

Type

Null

Default

id

int(11)

No

 

username

varchar(100)

No

 

password

varchar(100)

No

 

email

varchar(100)

No

 

P1

enum('0','1')

No

 

P2

enum('0','1')

No

 

P3

enum('0','1')

No

 

P4

enum('0','1')

No

 

P5

enum('0','1')

No

 

 

 

P1 all to P5 are for different permissions, i need help creating a script that will list all the usernames off staff and checkboxes that can be ticked to allocate them to different permissions. (eg, p1 allows them to edit details on another page 1 been granted permission 0 meaning they don't have access)

 

can anyone help me with this please

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.