I'm about to start an assignment and am just trying to think of the most logical waysd of doing things at the moment. The assignment involves using mysql and php to create a website for a training company.
The part i am having trouble conceptualizing is this:
"Tutors are created by administrator(s) after the credentials of the tutor has been checked. To become a course tutor the individual will register as a tutor."
So what I need is to be able to have someone register as a tutor but not be able to access the site until his account has been confirmed by an administrator.
I was going to have a page where the administrator could add and delete records and also edit the contents of fields.
What i'm thinking is having a field in my database called TYPE which would store either "tutor" "validatedtutor" or "student" and then having a line of code on restricted pages something along the lines of
if type = "tutor"
{
You are still waiting validation from a moderator.
}
if type = "validatedtutor"
{
continue with correct page
}
if type = "student"
{
continue with correct page}
Obviously, this is loost psudo code but does anybody think it will work. Thanks in advance to anyone who can help.