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

Update page not updating record

Thread began 9/13/2016 5:29 pm by iain331081 | Last modified 9/14/2016 12:57 pm by Ray Borduin | 1147 views | 7 replies |

iain331081

Update page not updating record

I'm sure this must be something dumb, but I can't see what I'm missing with the attached update page - basically isn't updating the record.

Have attached it below. If you can have a quick look that would be much appreciated. Thanks.

Sign in to reply to this post

iain331081

Actually - don't look at this yet except maybe for the code on the page.

I've managed to overwrite every record in the table with the same values for the fields getting updated on this page, so am looking at a restoration from a backup.

Sign in to reply to this post

Ray BorduinWebAssist

Just delete line 397 and update the update record value to use the session on line 157:
$WA_where_fieldValuesStr = "".($_SESSION["SecurityAssist_UserID"]) ."";

Sign in to reply to this post

iain331081

Thans Ray - I'm not sure that's it - its not updating the details of the user currently logged in. Have attached a revised copy of the file.

Sign in to reply to this post

Ray BorduinWebAssist

You are correct that would only update the logged in user, so that was wrong. I was assuming that was what you wanted because I didn't see a reference to $_GET['UserID'] anywhere on the page other than in that hidden field. Is it getting passed to the page?

Sign in to reply to this post

iain331081

Hi Ray - I think I've seen where I started to go wrong with it - I want to update the User, so should have made the link to the update page end with the UserID rather than the LodgeID, then it should hopefully work.

I'll let you know.

Sign in to reply to this post

iain331081

All fixed thank goodness - was panicking a bit when I managed to update 13,000 records with the wrong data!

Sign in to reply to this post

Ray BorduinWebAssist

Add a check to the trigger to make sure the filter field has a value to make sure that doesn't happen again.

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