Kan iemand mij vertellen wat er mis is met het volgende script? Ik ben al een tijdje bezig, maar het wil maar niet lukken...
<?php
include "Templates/Begin_Page.php";
if ($Login_Button == "Login")
if (empty($User))
print "You must enter a username!";
elseif (empty($Pass))
print "You must enter a password!";
else
{
$password = mysql_query('select password from users where username = $User and password = $Pass') //or
//die (mysql_error());
// print $password;
if ($Pass == $password)
{
print "You have succesfully logged in.";
// include "....";
// or
// redirect to My Account (or the like)
}
else
print "Username and Password do not match, try again!";
}
else
{
print "You need to login via the 'Login' item in the Menu.";
}
echo "<BR>";
echo "<BR>";
echo "<BR>";
echo "<BR>";
echo "password:<BR>";
print $password;
include "End_Page.php"
?>
Alvast badankt!
565 views