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

database search dynamic menu

Thread began 5/14/2010 2:41 pm by basim | Last modified 7/20/2010 10:04 am by basim | 1856 views | 11 replies


Don't know if I can help, but I just completed one of these.

It looks like you have the dynamic dropdowns working. First thing that I figured out the hard way was that the recordset in your search behavior must contain the values equal to the values used in the dropdowns. Whether they are ID numbers or words. There needs to be a comparison to return the records. So if you are using 1 table for your "Class" and 1 table for your "Brand" and yet another table for your "Food Items", you will need to create a JOIN.

Here I would be using a 4th relational table that relates the brands with the foods. The foods table would have a brands column in it.
Something like;
FROM tblFoods
LEFT JOIN relFoods_Brands ON tblFoods.ID = relFoods_Brands.Parent_ID
LEFT JOIN tblBrands ON tblFoods.BrandID = tblBrands.BrandsID LEFT JOIN tblClass ON relFoods_Brands.Parent_ClassID = tblClass.ClassID

I think. (Fake names obviously. But you get the idea. BTW, I use "tbl" in front of all my table names accept relational tables, I use "rel". Just my way of seeing which is which.)

One thing to note, if you get an error that a column is "ambiguous", you will need to designate the table for the columns where the * is at. Similar to the way they are in JOIN...ON part where there is a "." between the table name and the column name.

In my search, I am using 2 List types and comparing them to the two URL variables passed by the dropdowns post.

Also, I noticed that after a search, you loose everything in your dropdowns. I fixed this by clicking the dynamic button for the first (parent) dropdown and using the same URL variable as the "Select value equal to:" box. In your case it might be

<?php $_GET['S_class'?>

This worked for my needs anyway.

Still learning JOINS and relational tables so hopefully someone will jump in if I am steering you in the wrong direction. I just know that it's Friday and you will most likely want to work on this over the weekend. Been there a lot.


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