close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Inserting form data across multiple tables

Thread began 1/10/2010 11:17 pm by dcarnes279784 | Last modified 1/14/2010 10:08 am by Jimmy Wu | 4142 views | 5 replies |

dcarnes279784

Inserting form data across multiple tables

I am building a multi page registration form and need to insert the data in to 4 related MySQL tables. DataAssist appears to only use one table at a time. What should i be doing?

Sign in to reply to this post

Jimmy Wu

If you are inserting into multiple tables, you can apply multiple insert server behaviors to the page. Each insert server behavior inserts into a separate table.

Sign in to reply to this post

dcarnes279784

inserting into multiple tables

thank you for getting back to me. I will do that. My concern is that I am using the userID as the primary key in the user table, which will be automatically generated by MySQL on the creation of the record, and need to insert it into the foreign key of the address table.

How do I first create the userID key and then insert it into the address table as a foreign key in the same operation.
Thank you

Sign in to reply to this post

Jimmy Wu

What you would have to do is insert into the user table and then have a recordset to get the id out of the table and then use that id to insert into the other tables. The recordset would have to do the search on all the values inserted into the table to ensure that it is the id you are looking for.

Sign in to reply to this post

dcarnes279784

inserting into multiple tables

Thanks Jimmy
I got the picture. I will use the email column as the key

Sign in to reply to this post

Jimmy Wu

Ok, hope everything works out for you. If you run into any additional issues, feel free to open a new thread.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...