title: JavaScript PHP Dropdown Menu
body: <p>I want to make a DropDown Menu, where someone can Choose an option out of several options. Ans depending on this Value the other Dropdown menu should be updated with values out a Database. </p>
  
  <p>Like</p>
  
  <p>Option 1: kind of sport</p>
  
  <p>Option 2: Time</p>
  
  <p>Option 3: Place </p>
  
  <p>.
  .
  .</p>
  
  <p>// EDIT adding actual option. </p>
  
  <p>
  
  <pre><code>    $query = 'SELECT * FROM kurs';
      $result = $mysqli-&gt;query($query);
  
  
      echo
      "&lt;table border = 1&gt;
                          &lt;tr align = 'middle'&gt;  
                              &lt;td&gt; &lt;select&gt;";
      while ($zeile = $result-&gt;fetch_assoc()) {
          echo "&lt;option&gt;" . $zeile['name'] . "&lt;/option&gt;";
      }
      $result = $mysqli-&gt;query($query);
  
      echo
      "&lt;/td&gt;&lt;td&gt; &lt;select&gt;";
      while ($zeile = $result-&gt;fetch_assoc()) {
          echo "&lt;option&gt;" . $zeile['day'] . "&lt;/option&gt;";
      }
      $result = $mysqli-&gt;query($query);
  </code></pre>
  
  <p>and if someone update choose one option out of 'day', the other option 'name' should change depending on the 'day' and vice versa. </p>
  
  <p>I know how to get the information out of my SQL Database but i don't know how to make the Select Area dynamic. I'm not allowed to use JQuery. </p>
  
  <p>Any help is appreciated</p>