Hi guys,
I do not seem to get it right. With PHP runner 3.1 I am building a database as an example for computer maintenance.
My clients who buy the computers all have subdivisions in different city's and below that departments and several employees who have to see all computers in that department, and managers who need to see by location and company headquarters have to see all of their own locations including departments.
<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=3544&image=1&table=forumtopics' class='bbc_emoticon' alt=':blink:' /> The problem that I still have that I have made a Client number in the users table and made a master relation with the company table with the same Client number field. All other tables have thet client number field.
When I insert a new computer with Client number "1234" . The user that logins with clientnumber "9999" still can see data with clientnumber "1234" eventhough I have set security on "Users can see and edit their Own data only"and Users table and Master table with the same "Client number" field name.
How can I give an employee from an department only his/hers data and How do I define a master table for the complete database?
Quite a long story......but I hope you can help.
Thanks