close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Dynamic Menu Help

Thread began 11/20/2012 4:57 pm by jamie424562 | Last modified 11/21/2012 2:52 pm by jamie424562 | 647 views | 2 replies |

jamie424562

Dynamic Menu Help

Hi Guys

been trying to sort out a dynamic menu created with data bridge, in that the menu should only display one of the values.

Basically I have a list of currency's by country and language.
the menu provides currency's only, but all of them.

Taking into account that I need the ID for the drop menu as it is inserted to the DB once selected, and the currency is displayed in the menu which is what should be distinct from other values.

I have tried the following two options and am now at a loss.....

"SELECT DISTINCT language_currency, language_ID FROM per_language ORDER BY language_currency ASC";

= This provides me all ID as a distinct value, which I don't want, i want currency not the ID.

"SELECT language_currency, language_ID FROM per_language ORDER BY language_currency ASC GROUP BY language_currency";

= this one gives me an SQL error, but any guides I have found even ideas here have suggested this, with no result.

any help would be appreciated.

thanks in advance

Sign in to reply to this post

Ray BorduinWebAssist

You could probably use:

"SELECT DISTINCT language_currency FROM per_language ORDER BY language_currency ASC";

Distinct will return rows where all values are distinct, so if you want just currency you shouldn't include the language in the query.... or you could use:

"SELECT language_currency, language_ID FROM per_language GROUP BY language_currency ORDER BY language_currency ASC";

Group by should be before the order by

Sign in to reply to this post
Did this help? Tips are appreciated...

jamie424562

Thanks Ray didnt realize GROUP had to be before ORDER.

GROUP BY language_currency ORDER BY language_currency ASC

Worked a treat thanks very much :)

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