title: Adding image with text in select box using php/mysql
body: <pre><code>    &lt;? 
      ... 
      mysql cnx code 
      ... 
  
      $sql="SELECT id, thing FROM table"; 
      $result=mysql_query($sql); 
  
      $options=""; 
  
      while ($row=mysql_fetch_array($result)) { 
  
          $id=$row["id"]; 
          $thing=$row["thing"]; 
          $options.="&lt;OPTION VALUE=\"$id\"&gt;".$thing; 
      } 
      ?&gt; 
  
  ... 
  html code 
  ... 
  
  &lt;SELECT NAME=thing&gt; 
  &lt;OPTION VALUE=0&gt;Choose 
  &lt;?=$options?&gt; 
  &lt;/SELECT&gt; 
  </code></pre>
  
  <p>I'm using the above code to generate a drop down from my mysql database, but i also want an image in front of every text in the drop down list.</p>
  
  <p>For example: I have 4 things - APPLE, MANGO, BANANA, CARROT and the images are stored in a folder and their path is saved in a database table field. All i want to do is to add the respective image along with the text.</p>
  
  <p>Thanks in advance</p>