|
i have to create a student web app.
i need to have 3 tables in the mysql db.
one for students,one for classes,and one for grades.
i have a form that inserts the student and the classes.
then a page from where i can choose the student and give him a grade at each class.
how can i link these tables?
is it better to do it from mysql with foreign keys or from the php code ?
thank you
|