Hi all, first thanks to this Awesome plugin, life become way more easier!!
My questions is very straight forward: I got 2 tables, one is teachers, the other one is students. teacher can log in and CRUD students. But after i log in, i just wanna see the students that created by that specific teacher, not all students.. I got a field called teacher_id in students table, so everytime after teacher login, i wanna do sth like
"SELECT *
FROM students
WHERE teacher_id = 6"
Assume 6 is the id of the teacher in teachers' table..So in this case i can see students created by me instead of all students...Because Now after i added a new student, i got a list showing all the students..... Any help would be much appreciated!!!