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 6:58 am by neil.batchelor254136 | Last modified 10/07/2009 3:33 pm by neil.batchelor254136 | 4384 views | 19 replies

Eric Mittman

To make the update manually you will need to add in the where clause which looks like this in SQL:

SELECT * FROM theTable, usersTable
WHERE usersTable.userID = yourUserIDVariable

So you would need to do this for your query, add in the where clause, set the column you are comparing to, then specify the variable value to compare to.

On your login page you will have the authenticate user server behavior. In here you will see the session variables that are set when the user logs in. Check the one that holds the userID and not the name of the session variable.

When you go back into your query code on the page you can add in the where clause and the reference to the session variable. There are a few ways to do this but the easiest is to concatenate the variable into the query string like this:

".......WHERE usersTable.userID = " . $_SESSION['userID']

In Dreamweaver it is usually done by creating a query variable and assigning the value of your session variable to this query var. Then the query itself is set in an sprintf statement, this function takes a string that references wild card values as %s then it takes the values for these wild cards as the other parameters. Here is a link to the php page on the function:

php.net/sprintf

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