HighDots Forums  

Filling dropdown list with DB info?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Filling dropdown list with DB info? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steve Grosz
 
Posts: n/a

Default Filling dropdown list with DB info? - 11-01-2004 , 02:36 PM






I'm curious, how do you specify a dropdown list to pull the list info from a
database (like MySql) field?

Thanks,
Steve



Reply With Quote
  #2  
Old   
Tron
 
Posts: n/a

Default Re: Filling dropdown list with DB info? - 11-01-2004 , 03:06 PM






Steve Grosz wrote:
Quote:
I'm curious, how do you specify a dropdown list to pull the list info from a
database (like MySql) field?

Depends on what the dropdown list is going to be used for, but it's
fairly easy. I'm assuming you know how to insert dynamic data into a
page using a table or dynamic text; if you don't, you'll have to read
some tutorials over at the Development Centre. Center. Sorry.

First, you need to designate your page as a dynamic page. (I use php
mostly).

Then, insert your dropdown list, like you would normally. (Under Insert:
Form; you need an .html list before you can make it dynamic.)

Because your page is now dynamic, you'll see that you can enter values
the old fashioned way, or you can click on the "dynamic" button, and use
values from recordset. Then, just pass your link through the value of
the id_tag, and you're set to go. (You can also go to the Server
Behaviour panel, but it's easier just to click the dynamic button that
shows up in the property inspector.)

It's about that easy. Again, this is assuming you know how to use php
(and, up until two weeks ago, I didn't, so that's how easy it is) or
coldfusion or whatever.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.