I have a question concerning the login script at the bottom of this post. I have to make php scripts in odbc style because I'm working with a MS Acces database. I just can't figure out what is wrong with this login script...
Code: Select all
<?
If ($Submit) {
include('connect.php')
//This is where he gives the error
$query = odbc_exec($connect,"select * from users where username = '$LoginNaam' and password = '$LoginPassword'")
$Res = odbc_num_rows($query);
if ($Res == '1') {
//If the entries are correct
echo "It finally works";
}
//If the entries are not correct
else {
print "Bummer...\n";
}
}
?>