I want to select and display the Column Name of my table. I used SHOW SQL Command to display the data to my select box. The problem is I want to omit Two(2) columns, ID and Image column to be exact. I have no problem with displaying all the column names. Please refer to my code below for more details.
PHP Code:
<?php
require "connect.php";
$sql = "SHOW columns FROM tblLocation";
$result = mysqli_query($conn,$sql);
while ($row = mysqli_fetch_array($result)) {
echo "<option value='".$row['Field']."'>".ucfirst($row['Field'])."</option>";
}
?>
column to be exactNot Understand