0

I get the error on the "if (!LoginODR ->EOF) { Line, I can't find any help online that relates directly to the same kind of statement I am making.

Thanks.

if (!LoginODR -> EOF) {

$SecurityLevel = $Loginodr ->Fields('Seclevel')->Value;

$_SESSION['IsValid']="Yes";
$_SESSION['security'] = $SecurityLevel;

}else {

    $_SESSION['IsValid']="No";
    echo "<center>Invalid Username or Password!</center>";
    echo "<br><br>";
    echo "<form method='post' action='Login.php' name='formcontact' id='formcontact'>";
    echo "<center><input type='submit' name='btnback' id='btnback' value='Back' style='width: 150px; height: 50px;'></center>";

}
jszobody
  • 28,495
  • 6
  • 61
  • 72
Colby Bradbury
  • 77
  • 1
  • 1
  • 9

1 Answers1

0
if (!$LoginODR->EOF) {

$SecurityLevel = $LoginODR->Fields('Seclevel')->Value;

$_SESSION['IsValid']="Yes";
$_SESSION['security'] = $SecurityLevel;

}else {

    $_SESSION['IsValid']="No";
    echo "<center>Invalid Username or Password!</center>";
    echo "<br><br>";
    echo "<form method='post' action='Login.php' name='formcontact' id='formcontact'>";
    echo "<center><input type='submit' name='btnback' id='btnback' value='Back' style='width: 150px; height: 50px;'></center>";

}
beiller
  • 3,105
  • 1
  • 11
  • 19