I\'m working on an online courses project, where a user(teacher) can upload a course(which have multiple videos), and another user(student) buys the course. I\'m using php,