Question
Implementation of a sign-up (not sign-in) form in MySQL
Hi,
I am a newbie to PHP/MySQL. However, I have successfully created several databases and connected to them. I've been able to create users and sign-in pages (admin sections) to add, edit and delete items to the database.
However, I've hit a wall with a project I'm working on.
The goal is to create a system where people can sign their kids up for a class. So, I have created several tables for that purpose. A "family" table for the parents, a "student" table for the kids, a "class" table for the each class and then a user type" table to determine the level of access that each user will have.
Each family has a unique family_id and each student has a unique student_id. Each student_id record has a family_id collumn as a foreign key, since each family can have one or more kids.
How do I create a system where parents can log in and ONLY see whether their own kids are signed up or not for a particular class and add them to it if they are not?
I would appreciate any help.
I am a newbie to PHP/MySQL. However, I have successfully created several databases and connected to them. I've been able to create users and sign-in pages (admin sections) to add, edit and delete items to the database.
However, I've hit a wall with a project I'm working on.
The goal is to create a system where people can sign their kids up for a class. So, I have created several tables for that purpose. A "family" table for the parents, a "student" table for the kids, a "class" table for the each class and then a user type" table to determine the level of access that each user will have.
Each family has a unique family_id and each student has a unique student_id. Each student_id record has a family_id collumn as a foreign key, since each family can have one or more kids.
How do I create a system where parents can log in and ONLY see whether their own kids are signed up or not for a particular class and add them to it if they are not?
I would appreciate any help.
