Siriunson
11-23-2007, 02:46 PM
I am fairly new to databases & have the very helpful book "PHP Web Development with Dreamweaver MX 2004" published by Apress for my guide. I'm using DW8 & have built a database in phpMyAdmin that has tables for parents, their children, the child's class, year & school.
The parents table has parent_id & parentchild to link these tables. The child table has childschool, childyear & childclass fields, all of which are INT to link to the relevant tables by their _id (school_id etc).
I would like to have a page on which I can display a parent's details (parents_Details.php) and their related child plus the child's details. I have no idea how to go about joining all these tables in a recordset, so I can display the schoolname, yearname & classname fields as text rather than the table's _id number.
I would be very grateful of any help.
The parents table has parent_id & parentchild to link these tables. The child table has childschool, childyear & childclass fields, all of which are INT to link to the relevant tables by their _id (school_id etc).
I would like to have a page on which I can display a parent's details (parents_Details.php) and their related child plus the child's details. I have no idea how to go about joining all these tables in a recordset, so I can display the schoolname, yearname & classname fields as text rather than the table's _id number.
I would be very grateful of any help.