close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

How to pass child list value to next page?

Thread began 7/16/2010 8:39 pm by jeffmg279672 | Last modified 7/21/2010 1:36 pm by jeffmg279672 | 3253 views | 27 replies

jeffmg279672

I thought I'd give it a whirl and add some insert behaviours as suggested, so created two more recordsets - one for the comments to insert into my reviews table, and the other to insert the reviewers' details into the reviewers table. I then tried testing it locally and I got a fatal error message; a quick search on here indicated that the include call for the DA App Builder file had been inserted too low down the page - it had, so I moved it up under the include call for the Connections file. I ran through the add review procedure using my local server, and the review was added to the db and I was redirected to the "thanks" page as anticipated, so I thought I'd cracked it, so I tried adding a second review, and got this error:
Duplicate entry '0' for key 2

I had no idea what this meant, so I searched on here and decided that it had something to do with the fact that the practice_id number is being added to the table as '0' each time, which is why the second review wasn't added. In other words, the practice_id isn't being passed through, which means that the review isn't linked to the correct practice, so I need to sort that somehow. I presume this is a similar thing to needing to pass the child list value (above)? I've just manually added the correct practice id number to the reviews table, and then added another dummy review and it's inserted that into "reviews" perfectly, but again with the practice_id '0'. Any suggestions how to ensure that the correct practice_id is pulled from the parent/child drop-downs and inserted into the "reviews" table?

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