Family users
-
Hi all,
I am looking for support with how to access two users’ accounts at the same time. Thanks in advance.
I am referring to: https://wpdataaccess.com/docs/data-projects/user-roles-and-where-clauses/
Specifically:
`In a student administration system for example, you might need a page to inform students about their personal results. Suppose student results are stored in table STUDENT_RESULTS which has a column STUDENT_NAME that holds the WordPress username of the student (or STUDENT_ID that holds the WordPress userid of the student).
To give students access to thier own data only, you can add the following WHERE clause to the student result page:
STUDENT_NAME = $$USER$$ (or STUDENT_ID = $$USERID$$)Students will see their own results only. If you have users who need to see all results, you might need a second student result page available to their role.`
Imagine 2 siblings attend the same course, we are working towards the parent being able to see both childrens’ uploaded results in one place without having to log in twice to compare the results. This could be through a separate account to the individual students’ accounts.
Does anyone have advice about how we could use this plugin to allow parents to see data/results from more than one user account at the same time?
If that question is too broad then simply do you think I could achieve this with data access?
Bw,
Ben`
- The topic ‘Family users’ is closed to new replies.