I need to create a database with the following functionality:
- Registration of New Users.
ANYONE can register as a new user with a valid email.
New user receives email with their user id and password.
This user defaults to "level 1"
- With this access code "level 1" the user can log into their own record to view it or submit changes to only fields relating to their own contact details.
- After Login page - A page with complete view of user record with buttons in each section to edit
5 Sections:
- Client details
- RK
- RY
- AL
- CG
Each section above contains several fields containing data. Example Client data would be in Client details that would be editable for "Level 1" users.
The data in the following fields is also editable on condition that the user editing is a higher level than the user in the record:
- RK "level number","date","otherdata","moredata"
- RY "level number","date","otherdata","moredata"
- AL "level number","date","otherdata","moredata"
- CG "level number","date","otherdata","moredata"
Each user has a level number that is contained in the fields as shown above. Any user can view and edit the record of another user as long as his level is the same or higher than the record he his attempting to change.
Example: A level 3 user can log in, locate a single record by username of a lower level user for instance a "level 1" or a "level 2" and upgrade that users level to a "level 2" or "level 3" if he has the password of the lower users account.
Maybe I have not explained this in the best possible way but can anyone see what I am trying to achieve here and is this possible to setup with this phprunner system.
Can anyone help or offer advice on this? Or point me in the right direction?
I would like to build this myself if I could see how to go.
Thanks
Mike