title: select list allowed value
body: <p>i have this code to create a select list in drupal dynamically.</p>
  
  <pre><code>$res = db_query("select field1 from content_type_1");
  while($row = db_fetch_array($res)){
  $rows[] =$row['field1'];
  }
  return $rows;
  </code></pre>
  
  <p>output is like:</p>
  
  <pre><code>&lt;select&gt;
  &lt;option value="0"&gt;row['field1']&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>i need output like this</p>
  
  <pre><code>&lt;select&gt;
  &lt;option value="row['field1']"&gt;row['field1']&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>how to do this?</p>