hello PHP tycoons, i beg for help in giving me a way forward to write php script which will solve the problem i'm facing now. currently i'm developing basic student information system but in php knowledge i'm not that good, thus why i'm asking for help.so what i want to do is how can i add student details in student table and then add the school which a particular student belongs in just one html form and then writing php script which will process those entered data from that single html form. so that when i want to know what student belong to certain school i can just write a query which can i retrieve all the student from that school by using school code. let's say i have 80 different school and each school has it's own student and each student is uniquely identified by his/her student code and it's not auto increment that apply to school code too. i have two tables namely student and school
school table is as follows
1 school_code varchar(250) Primary key
2 school_name varchar(250)
student table is as follows
1 student_code varchar(250) primary key
2 firstname varchar(250)
3 middlename varchar(250)
4 lastname varchar(250)
5 gender varchar(250)
6 school_code varchar(250) foreign key
any help will be much appreciated thanks in advance.