i have been trying to populate a dropdown menu with the columns of a SQL table, but i am stuck. Or all the fields in the dropdown menu are : Array, or the dropdown menu is populated with empty values. 
am i missing something?
i tried this code.
SHOW COLUMNS, DESCRIBE 'TABLE' AND SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE = ikbb; 
    <?php
    $conn = new mysqli('localhost', 'heijsdb_user', 'maus', 'heijsdb') 
    or die ('Cannot connect to db');
    $result = $conn->query("SHOW COLUMNS FROM ikbb FROM heijsdb");
    echo "selecteer een input om aan te passen";
    echo "<html>";
    echo "<body>";
    echo "<select name='id'>";
    while ($row = $result->fetch_assoc()) {
                $rows[0] = $row;
                  echo '<option value="'.$row.'">'.$row.'</option>';
}
    echo "</select>";
    echo "</body>";
    echo "</html>";
?>
 
    