title: Populate select box from database using jQuery
body: <p>I am trying to populate a select box from values from a mysql database, using jQuery.</p>
  
  <p>db call:</p>
  
  <pre><code>&lt;?php 
  include 'db.php';
  $con = mysql_connect($host,$user,$pass);
  $dbs = mysql_select_db($databaseName, $con);
  
  $tableName = "tbl_title";
  $result = mysql_query("SELECT * FROM $tableName");
  
  $data = array();
  while ( $row = mysql_fetch_row($result) )
  {
      $data[] = $row;
  }
  //echo json_encode( $data );    
  ?&gt;
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;select id="a1_title"&gt;
    &lt;option&gt;Default&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>There are a bunch of examples that I have found, but nothing specifically related to what I am looking for, unless the force is not with me today.</p>
  
  <p>Is there a link someone can point me to?</p>