close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Dynamic Dropdown - Dynamic Array

Thread began 7/09/2014 1:08 pm by tn228553 | Last modified 7/10/2014 12:29 pm by Jason Byrnes | 1950 views | 5 replies |

tn228553

Dynamic Dropdown - Dynamic Array

I'm following the tutorial for using Dynamic Dropdowns and the Primary dropdown is showing up empty. Attached is a sample .php page and .sql of the data.

Basically I want to Display the column Division in the first dropdown and then auto-populate the second dropdown with column AreaName where Division is equal to what was selected in the Division dropdown.

Seems pretty straightforward but I guess I'm missing something.

Sign in to reply to this post

Jason ByrnesWebAssist

First, before the first select list, add the the following code to set the recordset to the first record:

<?php
$rows = mysql_num_rows($Recordset1);
if($rows > 0) {
mysql_data_seek($Recordset1, 0);
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
}
?>




then select the first list, and add the Populate List from Array behaivor.

open the behaviors window:
Window -> Behaviors

NOTE: Behaviors, not Server Behaviors

click the plus button and go to WebAssist -> Dynamic Dropdowns -> Populate List from Array

Sign in to reply to this post

tn228553

Missing Something

Please view updated private .php

Sign in to reply to this post

Jason ByrnesWebAssist

it is working for me when I test your file.

when i select R from the parent list, it populates the child list with Collier, whhen I select V, it popualtes the child list with Charlotte

Sign in to reply to this post

tn228553

Works!

Oh geez, must have been cached...works great! Thanks for the help as always Jason, really appreciate it.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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