title: select all table name and place inside a html dropdown
body: <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  
  &lt;div&gt;
      &lt;Select type="text"  style="width:220px; height: 30px;"&gt;
         &lt;?php
         $con = new mysqli('sample', 'sample', 'sample', 'intelecrm_02_24_14_copy');
  
              if($con-&gt;connect_errno) {
                  // error reporting here
              }
                 $db = mysql_select_db('intelecrm_02_24_14_copy');
                 $sql = "SHOW TABLES";
                 $result = mysql_query($sql);
                 while($r = mysql_fetch_assoc($result)) 
                  {
                     $tables = $r['intelecrm_02_24_14_copy'];
                     echo '&lt;option&gt;'.$tables.'&lt;/option&gt;';
                   }
  
         ?&gt;
      &lt;/select&gt;
  &lt;/div&gt;
  &lt;div&gt;
      &lt;button style="height: 21px; width: 100px;margin-top: 4px;"&gt; Some button&lt;/button&gt;
  &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>here's my code.....i don't know what went wrong with this one. All I want is to select all table names from my database which I named Juice and place it inside a html dropdown (which is select) but i dont know why its not working.</p>
  
  <p>I updated my question now....here's my latest code and nothing happens. The dropdown is still empty</p>