Jump to content

Writing to foreign keys


taz321

Recommended Posts

Hi

 

I am wanting a user to fill a few text fields and then click on submit for it to be saved to the database (MySQL)

 

The table which holds this data is called Person and the attributes are -

 

PersonID

Name

Age

Address

OrderID

FormID.

 

Now i know the personID automatically increments, but what about the foreign keys (Order & FormID), i need to put some sort of data in there otherwise it wont let me submit the form.

I cant have it the foreign Keys displayed on the forms because it won't make sense to the user.

 

Any Ideas?

 

Thanks

 

 

Link to comment
https://forums.phpfreaks.com/topic/84008-writing-to-foreign-keys/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.