php and sqlite

database has 4 tables (teachers, students, courses and performance). php needs to have user input to search 4 different things from that database.

1. count all course credits on given year
2. display all studies for given user
3. count average grade of given  course
4. print teachers that have given most grades