I am Creating a Online Course System so i created the following tables
Table Name = Users
-Columns:
1.userid
2.full name
3.email
4.user
5.password
Table Name = Stundents
-Columns:
1. stundentid
2. userid
3. idcourse
4. active
Table Name = Courses
-Columns:
1. idcourse
2. coursename
3. courseimage
4. courselink
5. courseactive
What i need its to get all the information from the table courses and the table students where idusuario=$iduser
$iduser=$_SESSION["iduser"];
The thing is i need all stundent table data that has and especific userid and than grab the courseid fomr that table and than get the information of the courses from courses table where courseid its on the courseid from the students table
i need to validate that the user is suscribed to a course so i can show it up on his profile menu.
My english is bad, hopefully you can understan well. Thanks