This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > Insert Query for Database





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Insert Query for Database
Thundaga

2004-08-26, 12:20 pm

I'm trying to get comfortable with Dreamweaver's command behavior for executing
an SQL insert, but I'm having a problem with figuring out how to do this.

I have two tables that have to be updated when a user inputs a form to the
form confirmation page. One table is for the customer's contact information,
the other is for the inquiry itself. I have a ContactID as a foreign key in
the Inquiry table because one customer could have many inquiries. How do I go
about inserting the ContactID that was just generated when the Contact table
was updated, into the Inquiry table? Both Primary keys are autonumbers.

Thanks,
Chad

Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews