mattix Posted May 9, 2018 Author Share Posted May 9, 2018 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>"; Quote Link to comment https://forums.phpfreaks.com/topic/307230-php-dropdown-menu-to-fetch-columnar-data/page/2/#findComment-1558335 Share on other sites More sharing options...
Solution Barand Posted May 9, 2018 Solution Share Posted May 9, 2018 (edited) 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. Edited May 9, 2018 by Barand Quote Link to comment https://forums.phpfreaks.com/topic/307230-php-dropdown-menu-to-fetch-columnar-data/page/2/#findComment-1558339 Share on other sites More sharing options...
mattix Posted May 9, 2018 Author Share Posted May 9, 2018 Thanks a lot, Barand. Quote Link to comment https://forums.phpfreaks.com/topic/307230-php-dropdown-menu-to-fetch-columnar-data/page/2/#findComment-1558341 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.