I know it is inefficient. It's part of a requirement, so it has to be done that way, where everything is displayed.
I now get an undefined index error for userID, all on the same line 31.
Notice: Undefined index: userID
and the notice repeats 6 times. Interestingly as I have 6 records in the table I need to talk to.
So the main issue it is pointing at is
foreach ($getUserID as $gUID) {
if ($userID == $gUID['userID'] && $userPassword == $gUID['userPassword']) {
$login = 1;
echo $welcome_msg;
}
}
?>
I do not see how the index is undefined. As userID is well established way up at Line 5.
Any ideas?