close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

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 Eric Mittman | 627 views | 1 replies |

submit102797

Verifying if an update to dB has been successful

Hello,

I am using DataAssist and am using an update server behaviour from it. That is all fine but, I want to be able to verify if the update was successful or not and then show that to the customer so they can either be assured that the update was successful or, if it was not, what to do at that point.

How can I accomplish that with this behaviour?

Thanks for any help

Dave

Sign in to reply to this post

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.

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