close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Inserting records into Multiple Tables at one with DataAssist is this possible

Thread began 8/24/2009 3:58 am by neil.batchelor254136 | Last modified 10/07/2009 12:33 pm by neil.batchelor254136 | 9134 views | 19 replies

neil.batchelor254136

Adding the user id into its relation tables with using dataAsssist

Eric,

Thank you for your help.

1. Do I need to add in a user id as a primary key, as a foreign key or just another column?
2. I have already does this using foreign keys but I am fairly new to mysql so I am not sure if this will work.

If a user register's and then logs in they will have a user id unqiue to them.
There it is a question of specially how I use data assist to insert for example a listing record, so that from the users point of view the record is populated with a new unique listing id, and their user id.

Therefore from a dataAssist point of view when a clicks on add a listing how I populate the listing with their user id.

Secondly for example when they click update, or delete listing, I use data assist to create the update/delete page, but ensure is only brings back the record with the user id of the current session??

Is that descriptive enough? Or sufficient from the point of view of interactivity with the user. I suppose you can liken this example to a shopping cart in eCart where users can only create, update, delete and search on their orders.
So I think of tables 3 and 6 to 10 as different order types in different order tables that a customer may enter.

Thank you very much, your time and help is greatly appreciated.

Thanks,
Neil

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