Hi there,
I've the following question: I have 4 tables - documents, categories, users and user permissions to categories. I'd like to have different user types - each user type see selected categories only (the list of permitted categories is setup by admin dynamicaly).
If I log as a given user (not admin), I'd like to see my permitted categories only. I feel that I should write my sql select statement using information of logged user ID (int field, not varchar - username) based on JOIN - and create view to categories table.
I don't know how to filter categories table for a given user using information of logged user id.
Any suggestions?
Best Rgds,
Jacek
PHPR fan!