Welcome, Guest
Username: Password: Remember me

TOPIC: Options of a dropdown list from a database

Options of a dropdown list from a database 3 years 6 months ago #61782

  • madopr
  • madopr's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 26
  • Karma: 0
Is it possible to get the answers and codes of list(dropdown) (or radio) from a consult to an SQLServer/MySQL database?

I wan't to do something like this:

Database:
Field1|Field2
  1   |  a
  1   |  b
  1   |  c
  2   |  d
  2   |  f
  2   |  g

Survey:

First question: Numerical imput

Second question: Dropdown list
If First question answer is 1, options in dropdown
list should be a, b and c.
If First question answer is 2, options in dropdown
list should be d, e and f.




Thanks in advance!

[edit:] I know how to do this without the database. The problem is that in field 2 i could have hundreds of values...
Last Edit: 3 years 6 months ago by madopr.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.156 seconds
Donation Image