For my CMS, I've got two lookuptables
* pagereadlookup
* pagewritelookup
and a table with page properties
* page
What I want is, given an user with userId=x, to select all pages which this user may both NOT read and NOT write.
I've tried a lot but I can't figure this out. Who can help me?
* pagereadlookup
Code:
+-----------------+
| userId | pageID |
+-----------------+
Code:
+-----------------+
| userId | pageID |
+-----------------+
* page
Code:
+-----------------+
| ID | name | URL |
+-----------------+
I've tried a lot but I can't figure this out. Who can help me?