title: change the table data based on the selected option
body: <p>I have a table displaying data from the database. I have a select box where the person can select the currency in which he wants the data to be displayed. </p>
  
  <p>When he does so, i need the data to be refreshed and displayed as the new currency. And I can't figure out how to do so without refreshing the whole page.</p>
  
  <p>Any ideas please?</p>
  
  <pre><code>&lt;select id="currency"&gt;
  &lt;option value = "rub"&gt;В рублях&lt;/option&gt;
  &lt;option value = "usd"&gt;USD&lt;/option&gt;
  &lt;option value = "eur"&gt;EURO&lt;/option&gt;
  &lt;/select&gt;
  &lt;table id="servers" cellpadding="0" cellspacing="0"&gt;
   &lt;tr&gt;
  &lt;td width="400"&gt;&lt;b&gt;Сервер&lt;/b&gt;&lt;/td&gt;
  &lt;td width="100"&gt;&lt;b&gt;1 кк адены&lt;/b&gt;&lt;/td&gt;
  &lt;td width="100"&gt;&lt;b&gt;1 ккк адены&lt;/b&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;?php 
  $sql = mysql_query("SELECT * FROM `prices`");
  while($r = mysql_fetch_array($sql)) {
  echo("\t\t&lt;tr&gt;\n");
  echo("\t\t\t&lt;td&gt;".$r['name']."&lt;/td&gt;\n");
  echo("\t\t\t&lt;td&gt;$".round($r['kk']/$dollar, 2)."&lt;/td&gt;\n");
  echo("\t\t\t&lt;td&gt;$".round($r['kkk']/$dollar, 2)."&lt;/td&gt;\n");
  echo("\t\t&lt;/tr&gt;\n");
  } ?&gt;
  &lt;/table&gt;
  </code></pre>