I have a page that is calling a getLogin function from a pinc file. That function checks to see if there is a match on a username/password if so it returns true else it returns false.
Now on my process page - when I call the function, I want it to check if the return of the function was true or false. If it was true - it needs to load a function $logged_in with a Y or it needs to echo an error message. I don't understand what the if condition is. Right now I am calling the function with the following IF statement:
getLogin($username, $password);
if (return = TRUE)
{
$logged_in = 'Y';
}
else
{
echo "Incorrect username or password!";
}
I am getting this error:
Parse error: syntax error, unexpected T_RETURN in /staff/seebetra/homepage/ciss225/login_process.php on line 11
Any suggestions?