Web Analytics Made Easy -
StatCounter Combo boxs and databases. - CodingForum

Announcement

Collapse
No announcement yet.

Combo boxs and databases.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Combo boxs and databases.

    Hi need some help.

    I would like to have 2 combo boxes on my screen linked to a database.

    The database has one table with 2 columns (countyand city)

    I want to be able to select the first combo box (county) then by selecting that it will fillter the second combo box of cities.

    I need to make sure that there are no repeats in the combo box.

    can any one help. and coding would be helpful,

    I am trying to do php but have been advised to use javascript for this part.

  • #2
    You definitely need php to retrieve the data from database and to generate javascript array found in this script.
    Glenn
    vBulletin Mods That Rock!

    Comment


    • #3
      can i not just do it through javascript??

      that example just shows the options in the code not from a database

      Comment


      • #4
        No

        Javascript can't connect to the database. Since you have access to php, you should be able to do it in php.

        The script implies that the data can be hardcoded or dynamically generated by a server-side language.
        Glenn
        vBulletin Mods That Rock!

        Comment

        Working...
        X