View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Verifying if an update to dB has been successful

Thread began 9/24/2009 1:31 pm by submit102797 | Last modified 9/24/2009 9:20 pm by submit102797 | 600 views | 1 replies

Eric Mittman

If you are using this with PHP the or die(mysql_error) part after the query is executed should inform you of any error that is occurring during the update.

If you would like to have a custom confirmation of the update you can do something like this:

Store the record id for the record you are updating in a session variable. Then on the page then user goes to next you can create a recordset to select the records from that table where the id matches your session variable value. When the record is found you can display the details of the current record to the user so that they can confirm that the update took place.

Making an update to a record using the DataAssist pages should take you to the detail page which will do just as I described above and allow you to view the values for the current record. This is the best form of confirmation that the changes made are taking effect. There are some other ways you can do this too. One alternate way that would be much more custom and is not a supported feature would be to store the existing values of the record in session variables, then after the update is submitted you can do a comparison of the new values against the old values in the session variables. So long as one of the values is different then the update occurred successfully. Like I said this is much more custom and is not a supported feature but it is just another idea of how you could do something like this.

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