close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Update record deletes all other fields

Thread began 1/03/2014 4:36 am by georgina_barrett_187762 | Last modified 1/07/2014 6:42 am by Jason Byrnes | 742 views | 7 replies |

georgina_barrett_187762

Update record deletes all other fields

I have an update page which updates some fields in the table but not others. It does update the fields I select however the problem is instead of leaving the other fields alone it deletes any information in them from the table. It keeps the primary field (BookingRequestID) but deletes everything else that isn´t mentioned in the update. I have attached the file.

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

georgina_barrett_187762

Originally Said By: Jason Byrnes
  I'll need to troubleshoot directly, see the private message section.  
Sign in to reply to this post

Jason ByrnesWebAssist

see PM

Sign in to reply to this post

georgina_barrett_187762

Originally Said By: Jason Byrnes
  see PM  
Sign in to reply to this post

Jason ByrnesWebAssist

on the BookingRequestDM_Update.php page, the action is to post to another page:

<form action="BookingRequest_Update.php?BookingRequestID=<?php echo(rawurlencode($row_WADABookingRequest['BookingRequestID'])); ?>" method="post" name="WADAUpdateForm" id="WADAUpdateForm">


change that so the action posts to itself
<form action="BookingRequestDM_Update.php?BookingRequestID=<?php echo(rawurlencode($row_WADABookingRequest['BookingRequestID'])); ?>" method="post" name="WADAUpdateForm" id="WADAUpdateForm">

Sign in to reply to this post

georgina_barrett_187762

That was it thank you. - That will teach me to copy a page.

Sign in to reply to this post

Jason ByrnesWebAssist

yeah, copying a page is likely to cause unintended error that can be avoided by creating the page from scratch. it often seam like it would be easier, but in reality is anything but...

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