close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Update and delete forms not working

Thread began 8/23/2012 12:48 pm by colinlangley441259 | Last modified 8/23/2012 2:30 pm by Jason Byrnes | 789 views | 3 replies |

colinlangley441259

Update and delete forms not working

Hi, Just like to say thanks for the excellent support on these forums. Im really new to php and database driven websites and i am coming across a number of problems however managing to sort most of them quite quickly due to your help.

Which brings me to my next problem.... I have created a number of pages to add, update and delete data from tables however recently no matter what i do (and i have tried everything including the dreamweaver wizards) i can only make the add form work.

I have got a "manage" page which displays all the records with an "edit" and "delete" button on each line. When i click the edit or delete it takes me to the "update" or "delete" page and the URL shows the correct record number i.e. _id=6 but it does not populate the update fields with the record data and the delete page does not delete the record or take me back to the "manage" page. The "manage" page is clearly sending the correct record but for some reason the other pages do not seem to be able to use it???

Attached Files
manage_partners.zip
update_partners.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the zip files you sent seam to be corrupted, I am not able to open them.

please recreate the zip files and reattach.

Sign in to reply to this post

colinlangley441259

sorry, try this.

Attached Files
manage_partners.zip
update_partners.zip
Sign in to reply to this post

Jason ByrnesWebAssist

this lnks to the update page are sending the ID using a url parameter named partner_id:

update_partners.php?partner_id=<?php echo $row_getPartner['partnership_id']; ?>



but the reopcrdset you have created on the update page, is execting a URL parameter named partnership_id.



either edit the links so they pass the URL parameter name the update page is expecting:

update_partners.php?partnership_id=<?php echo $row_getPartner['partnership_id']; ?>


or edit the recordset on the update page to expect the name you are using.

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