close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Multiple checkbox update

Thread began 6/02/2010 9:28 am by georgina_barrett_187762 | Last modified 3/07/2011 1:37 pm by georgina_barrett_187762 | 4083 views | 30 replies


Multiple checkbox update

I have 5 table in my database. One to store resort information 'resortdetails', one to store the names of amenities 'amenities' and 3 which tie the 2 together 'amenitiesonsite', 'amenitesunit', amenitiesother' . These are identicle in structure and store the resort id and the amenities id.

For example a resort have multiple unit amenities, multiple onsite amenities and multiple other amenities.

I have created an insert page that lists all the amenities from the amenities table as checkboxes and then once an amenity is checked it will get uploaded to one of the databases 'amenitiesonsite', 'amenitesunit', amenitiesother' (there are 3 multiple inserts on the page)

Now I am trying to create the update page. I have created 3 recordsets to pull in all the amenities from the amenities table (1 may have done for all of them but to make it easier for me to understand I have created 3 identicle ones - naming them differently)
Each of these are repeated checkboxes.

I have created 3 other recordsets to pull in the amenities that are stored in the 3 tables 'amenitiesonsite', 'amenitesunit', amenitiesother'. Using the resort ID that is passed from the previous page (S_resortID).
I have tried to dynamically bind the checkboxes so that if a value from the amenities table matches one from the amenitesunit table mark the checkbox as checked.

This works so far as it checks a correct amenity for each of the tables however it only checks one amenity even if there are numerous in the amenitesunit table for that resort. I guess it needs to repeat the recordset somehow - but I don't have a clue where to start.
I have attached the file.

Attached Files

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





Ease of use


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