Jump to content

PHP dropdown menu to fetch columnar data


mattix

Recommended Posts

I am sorry to say this, even though I tried all lowercase uppercase conditions, I still get the same error. 

 

Notice: Undefined index: mySelect in C:\wamp64\www\example.php on line 36

Line 36:         echo "<tr><td>" . $row["mySelect"] . "</td></tr>";

Link to comment
Share on other sites

You are missing an all-important line

$sql = "SELECT `$mySelect` as mySelect FROM employees";
$result = mysqli_query($link, $sql);                      //          add this line to query the database

 If still not working, post the code you now have.                                      

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.