Hi,
I need some help setting this database up correctly. Any help would be appreciated. I currently have the following 2 tables with the following fields in each:
======================
Table Name: Master |
ID (Primary ID) ----->
City ------------>
Section ------------>
Year ------------>
Address ------------>
City ------------>
State ------------>
Zip ------------>
Phone ------------>
Quota ------------>
=========================
Table Name: Orders |
Order_ID (Primary ID)
ID
City
Section
Year
Address
City
State
Zip
Phone
Quota
<------------ Qty
<------------ Goal
<------------ Last_Order
I would like to display the fields from the table called "MASTER": ID, City, Section, Year, Address, City, State, Zip, Phone, and Quota in the Table called "ORDERS".Because that information would be coming from the "MASTER" Table.
The "Orders" table has 3 fields that will display on the "MASTER" table, which are: Qty, Goal, and Last_Order.
And everything is Set by "ID" which is the primary key in the "MASTER" table. So the fields would have to display according to what "ID" they belong to. The "ORDERS_ID" from the "ORDERS" table is the primary key since the "ID" in the "ORDERS" table will have multiple orders.
I have a master.php and orders.php file.
How would I set something like this up to work correctly? Hope all this makes sense.
Thanks, Sara