title: showing my database tables using selection in php
body: <p>i'm trying to display all my tables in database with this code.</p>
  
  <pre><code>&lt;label&gt;
    &lt;select class="selectpicker" name="tabel"&gt;
  
          &lt;?php
          include "koneksi.php";
          $koneksi -&gt;select_db('testskripsi');
          $sql =  mysqli_query($koneksi, "show tables") ;
          while($table = $sql-&gt;fetch_array(MYSQLI_ASSOC)) {
              echo '&lt;option name="opsi" value = "' . $table['Tables'] . '"&gt;' . $table['Tables'] . '&lt;/option&gt;';
          }
  
          ?&gt;
      &lt;/select&gt;
  &lt;/label&gt;
  </code></pre>
  
  <p>here's my result</p>
  
  <p><a href="https://i.stack.imgur.com/aBQGU.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aBQGU.jpg" alt="image"></a></p>
  
  <p>i think i don't know how to fill this array to make my tables displayed</p>
  
  <pre><code>' . $table['Tables'] . '
  </code></pre>