title: Creating a ComboBox with PDO
body: <p>I am new to all this, and I am having no luck in finding the answers anywhere.
  I am trying to create a combobox with PDO but I am just unable to get it to work correctly. My results show the array and everything in the array.</p>
  
  <p>What I want to show is in one combobox the equipment_model and if possible based on that selection a field to the right of it with the price that is associated with that model.</p>
  
  <p>If more information is required let me know. Again I am new to this and want to learn.</p>
  
  <pre><code> &lt;form&gt;
     &lt;fieldset&gt;
        &lt;legend&gt;Selecting elements&lt;/legend&gt;
        &lt;p&gt;
           &lt;label&gt;Furnace&lt;/label&gt;
       &lt;select name="Equipment1" id = "Equipment1"&gt; 
   &lt;option id="1"&gt;
   &lt;?PHP
  require_once 'php/func_inc.php';
  $odb=new PDO('mysql:host=localhost;dbname=proposal_site', 'root', '');
  $query = "select equipment_model from equipment_master";
      $data = $odb-&gt;prepare($query);    // Prepare query for execution
      $data-&gt;execute();// Execute (run) the query
  
  
  
      $row=$data-&gt;fetchAll(PDO::FETCH_ASSOC);
  
  
      print_r($row); 
      ?&gt;
   &lt;/option&gt;
  
  
  
  
  
       &lt;/select&gt;
       &lt;/fieldset&gt;
  &lt;/form&gt;
  </code></pre>