Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

correct way of linking columns/tables 1

Status
Not open for further replies.

cammy

Technical User
Feb 4, 2002
152
GB
Hi

I have a series of tables setup, some of which contain columns named the same, such as 'clientid'. The first clientid value is generated by auto_increment in the 'clientaddr' table and when I add a client contact, this value is passed using a query string and inserted using a form field into the 'clientcontacts' table which also has a clientid column.

I am a beginner at this and am unsure if this is the normal/correct way of linking/joining tables.

Any advice would be appreciated.

Cheers

Cammy
 
yes that is the correct way of keeping your content consistant. If you are not aware of using last_insert_id to insert the clientid from the first to the second table you might want to check out this article
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top