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

Help with some code, please

Thread began 5/16/2012 4:33 pm by msummers194171 | Last modified 5/25/2012 1:30 pm by msummers194171 | 1189 views | 11 replies


Originally Said By: Jason Byrnes
  this is a badly set up page and a badly set up database.

it looks like you are trying to store it looks like your select list is a multiple select list which would mean that projects are stored as a comma separated list to the database.

this is a bad practice. this is not the correct way to create a many to many relationship  

Nope, that's not how it is at all.

The projects records each include a project category field as an enum field. I have a recordset on that page that does a SELECT DISTINCT on that field - thus, the recordset ($row_WADAProject) thus contains a single instance of each project category. This recordset is used only to populate that select tag. As I'm stepping through that recordset I want to compare each project category to the category in the record specified by the passed ID, and when they match, add the "selected" attribute to the associated <option> tag.

Each project in the projects table will belong only to a single project category.

Does that help you understand what I am doing? I want a list of categories with the category applicable to the given record already selected.

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