title: How to $_GET values from sql to be inserted in <select type> PHP
body: <p>I'm using xampp PHP</p>
  
  <p>How to do I get values from MySQL in select type like getting value in</p>
  
  <pre><code>&lt;input type="text" value="&lt;?php $variable['valueinsql']; ?&gt;"&gt; 
  </code></pre>
  
  <p>But I want the value to be inserted in</p>
  
  <pre><code>&lt;select type&gt;
  </code></pre>
  
  <p>And I tried</p>
  
  <pre><code>If(isset($_GET['id'])){
  
  &lt;p&gt; Banks:&lt;/p&gt;&lt;select multiple="multiple" name="otherbanks[]" style=" width:190;" value = "&lt;?php $list["Banks"] ?&gt;""&gt;
  &lt;option value="Banksone"&gt;One&lt;/option&gt;
  &lt;option value="Bankstwo"&gt;two&lt;/option&gt;
  &lt;option value="Bankthree"&gt;three&lt;/option&gt;
  </code></pre>
  
  <p>I want to see it automatically highlighted.
  <img src="https://i.stack.imgur.com/nLejE.png" alt="expected result"></p>