mattix 0 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 post Share on other sites
Solution Barand 1,617 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 post Share on other sites
mattix 0 Posted May 9, 2018 Author Share Posted May 9, 2018 Thanks a lot, Barand. Quote Link to post Share on other sites
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.