after you sort out the connection you might want to fix your table
echo "<table border="1">";
while($row=mysqli_fetch_array($result)){
$col_name = $row['Field'];
$click = "<a href="https://stackoverflow.com/questions/43335024/Column_details.php?mv=".$col_name."">" .$col_name. "</a>";
echo "<tr>";
echo "<td>" . $col_name . "</td>";
echo "<td>" . $click . "</td>";
}
echo "</table>";
4
solved sql query not executing on local host