title: Default value in drop down
body: <p>I am creating a edit user page which contains text boxes and drop down menus populated from data within the database. </p>
  
  <p>I currently call a function to populate the drop down menus. For example, here is the code that I used to populate a drop down:</p>
  
  <pre><code>&lt;select name="manager"&gt;;
  &lt;?php
  // printing the list box select command
  foreach($managerDetails as $row){
  //Array or records stored in $managerDetails
  echo "&lt;option value='${row['userID']}'&gt;
  ${row['lastName']}, ${row['firstName']}
  &lt;/option&gt;";
  /* Option values are added by looping through the array */
  }
  ?&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I am attempting to have the combo box automatically display the value from the database.
  I have attempted placing this as the value of :</p>
  
  <pre><code>value="&lt;?php echo $userDetails['managerID']; ?&gt;"
  </code></pre>
  
  <p>Thanks.</p>