close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Insert Record is replacing instead of adding

Thread began 11/01/2011 5:25 pm by SaladoGuy | Last modified 11/03/2011 5:42 am by iansheldon422428 | 761 views | 5 replies |

SaladoGuyBeta Tester

Insert Record is replacing instead of adding

I have a simple page that is supposed to upload a photo and then add a record to the database with the file name and unique ID. The upload works great, but the insert record behavior sometimes will add a record and sometimes replace the last record, (nothing happens to the file though).

Thanks in advance!

I've attached the file...

Attached Files
index.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

An insert command cannot overwrite an existing record. It can only create a new record.

Are you looking at the information directly in the database to determine that it is being replaced? or does it appear like it is being replaced in another page in your site?

I would suspect the later to be the case, and i would suspect that the page where you are seeing the problem doe not have a repeat region to show all of the records.

Sign in to reply to this post

SaladoGuyBeta Tester

I DO have a repeat region, I AM checking the DB directly, it IS replacing the previously added record.

Sign in to reply to this post

SaladoGuyBeta Tester

The thing about it is that it always works just fine the first time you try it (with a new browser session). After that it will randomly work correctly and incorrectly. I have a hunch that it has something to do with some session variable, but no way to say which one, or any idea where to start trying to find out! :-(

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

iansheldon422428

Are you writing to the database directly with form variables or session variables?

Cheers
Ian

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