Ok so i have a basic login screen with 3 types of users and required privilages.
Admin, Teacher and Student.
I've been working on the upload script and finally got it working but im now trying to work out a way so that once a user uploads a file that rather than allowing everyone to view the uploaded file, it only shows a user with the correct privilage to view it. For instance
Admin 01 Uploads file to only show Student 01 and 02.
That means Teacher 01 wont be able to view it nor will any other user who isnt Admin 01 or Student 01 and 02. Is this possible? i know i would have to make another Database entry but how would i firstly show the uploaded file on the webpage? Im really wracking my head about this and have no idea what to do here... well thats a lie i have an idea but i don't know where i should start for this part of my project.
Admin, Teacher and Student.
I've been working on the upload script and finally got it working but im now trying to work out a way so that once a user uploads a file that rather than allowing everyone to view the uploaded file, it only shows a user with the correct privilage to view it. For instance
Admin 01 Uploads file to only show Student 01 and 02.
That means Teacher 01 wont be able to view it nor will any other user who isnt Admin 01 or Student 01 and 02. Is this possible? i know i would have to make another Database entry but how would i firstly show the uploaded file on the webpage? Im really wracking my head about this and have no idea what to do here... well thats a lie i have an idea but i don't know where i should start for this part of my project.