Jump to content

Database roll playing


otuatail

Recommended Posts

I have tried to create a CMS website. Everyone has to log in to make any changes to a web page. The user then has a drop down box to select which page he or she want s to change. They then are given a history of the past content of that page and can make changes to a content and pick which content is to be current.

 

My problem is how can I decide in that drop down box which page a user can edit. That means hiding some items from the drop down box.

 

The user table has a userID and the Pages table has a PagesID. How do I do a mix & match system. I need some kind of intermediate tables to link this all together.

 

TIA

 

Desmond.

 

Link to comment
Share on other sites

Well no. I would like that

User A would have  1,5,8,10 (pages in the drop down box)

User B would have  3,4,8,12 (pages in the drop down box)

 

This is some kind of many to many relationship.

 

If I had 32 users and 16 web pages, I would need some kind of table of 512 rows with 2 colums with spaces where a user can't access a page to edit. This is complcated if you have to a user or page.

I was hoping there would be a neat solution.

 

 

Link to comment
Share on other sites

I want to do a site where each department has a page on a website so only a deparment can or would want to edit there page or pages. This is definatly a database problem not a coding problem. It involves seting up some tables to add remove rolls/permissions. So why has Thorpe MOVED this to Coding forum. It is defanatly a database problem.

 

Desmond.

 

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.