close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Insert ID not set for subsequent transaction

Thread began 6/14/2012 4:33 pm by neo314 | Last modified 6/15/2012 4:51 pm by neo314 | 474 views | 4 replies


SOLVED: Insert ID not set for subsequent transaction

I have a gallery program in which an image can have a title and description as well. The Image's name determined by a formula, so the flow is:

  1. Insert the Title & Description
  2. Upload file and rename based on a formula which includes the Insert ID and works.
  3. Update the gallery's Icon Image ID to be the Insert ID if the icon has not been set.
  4. Update the Image record to include the new file name.

What is strange is that the Insert ID is referenced in steps 2, 3, & 4, but works in 2 & 4 correctly and inserts the last used value in step 3.

In other words, if I just inserted image 7 into gallery 3; created gallery 4 (new so no icon set yet); and add an image to gallery 4, the image has the correct Insert ID in the name and the WHERE clause for step for is correct because the file name is updated correctly, BUT gallery 4 gets 7 assigned to the icon's ID foreign key field.

The order of the code is correct, so I cannot understand what is happening here.

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





Ease of use


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