title: Ajax not returning full results
body: <p>I have code to return options for a dropdown box from a query. I have the function set up and the code it's grabbing from. When I check the appraisal_options.php page it shows the correct amount of items in the dropdown, but when I go to the page that is calling it, it doesn't show any of the results from the query lines. It does return the 'test' result that's manually coded.</p>
  <pre><code>function loadMake(dropdown_type) {
          const xhttp = new XMLHttpRequest();
          xhttp.onload = function () {
              document.getElementById( &quot;make&quot; ).innerHTML = this.responseText;
          }
          xhttp.open( &quot;GET&quot;, &quot;appraisal_options.php?type=&quot; + dropdown_type, true );
          xhttp.send();
      }
  
  /// Get results for Make from Type 
  if ( $_GET['type'] ) {
      $type = $_GET[ &quot;type&quot; ]; 
      echo &quot;&lt;select id='make' name='make'&gt; &lt;option value='none' selected&gt; Select a Make&lt;/option&gt;&quot;;
  
      $make_query = mysqli_query( $con, &quot;SELECT DISTINCT Make FROM UnitsOptions WHERE Type = '$type'&quot; )or die( mysqli_error() );
      while ( $return = mysqli_fetch_array( $make_query ) ) {
          echo &quot;&lt;option onclick='loadYear()' value='&quot;.$return['Make']. &quot;'&gt;&quot;.$return['Make'].&quot;&lt;/option&gt;&quot;;
      }
      
      echo &quot;&lt;option value='none' onclick='loadYear()'&gt; test&lt;/option&gt; &lt;/select&gt;&quot;;
  }
  </code></pre>