Because it is Access DB, the usual MYSQl statements dont work.
This is the code so far, and this is the error I get:
$query =("SELECT TOP 1 username FROM users WHERE username = '$username'");
$result = $conn->execute($query);
$Recordset = ($result);
while (!$Recordset->EOF) {
$dbpassword = $Recordset->Fields("pass");
$Recordset->MoveNext();
}
if($db_password == $password){
echo ("Login successful, show them the page");
}
else {
echo ("Login Failed, show login again, clear values ");
}
}
ERROR:
Warning: (null)(): Invoke() failed: Exception occurred. Source: ADODB.Recordset Description: Item cannot be found in the collection corresponding to the requested name or ordinal. in e:\webareas\ou301\project\login.php on line 22
Login Failed, show login again, clear values
Thanks