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>"; Link to comment Share on other sites More sharing options...
Barand Posted May 9, 2018 Share Posted May 9, 2018 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 More sharing options...
mattix Posted May 9, 2018 Author Share Posted May 9, 2018 Thanks a lot, Barand. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.