Jump to content

nomalizing


spraypray12

Recommended Posts

Right now i have a form like this: www.redmond.k12.or.us/rhs/php/orderform/form.php

 

I have a table with these columns:

Date,Requestor,Student_Body,District,Grant_or_Other,Vendor_Name,Address,

Address_Line_2,Phone,Fax,q1,q2,q3,q4,q5,q6,c1,c2,c3,c4,c5,c6,d1,d2,d3,d4,d5,d6,p1,

p2,p3,p4,p5,p6,e1,e2,e3,e4,e5,e6,Shipping_Estimate,Total

 

I want to split into something like this:

 

order_desc

id

date

requestor

student_body

district

grant_or_other

vendor_name

addr1

addr2

phone

fax

 

order_items

id

order_id

quantity

catalog

desc

price

ext_price

 

I want to be able to submit each row of data in the bottom part of my form

to the order_items table, but i don't know how to relate them to the order_desc

table. Also, i don't know how i would keep the order_id the same for each row, for that query. Any help would be appreciated.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.