Page 1 of 1

Plz help me on php

Posted: Tue Jan 26, 2010 9:45 am
by areenshah
first thing i love PHP, as i have no time or money to join a institute for php classes so i started learning on internet i have downloaded books on php as i start learning php i also start creating a database website so that i can learn and remember.
i want to ask you experts
first of all i made a database on PHPmyadmin
database name records
then i made 2 tables on records database names are teacher and student
then i made a php page by name of form.php which i use to insert record to record database
then i made another php page which connects form.php to database

now i want to add dropdown menu in form.php having 2 options teacher and student
i want to connect option teacher to teacher table in record database and student option to student table in record database
as i select teacher from dropdown list then data will be saved in teacher table if i select student then data will be saved in student table.

so plzzzzzzzzz help me on this i'm totally new in php


hope u help so that i can continue

Re: Plz help me on php

Posted: Tue Jan 26, 2010 10:10 am
by lshaw
I cannot understand what you are saying porperly but do you mean you want to have and option for each teacher and student in a form so a user can pick a teacher and student?.