Hi... i keep getting the following error:
Parse error: parse error in /usr/local/psa/home/vhosts/*****.com/httpdocs/login/index.php on line 25
I am totally unsure why this is happening!
I have included my code below so any help would be great.
Jonathan
PS: Like 25 is "("user_cookie",$username,"","/");"
===========
if (!$username || !$password)
{
header("Location: login_form.php?comments=ERROR:%20No%20Username%20or%20Password%20Entered!");
}
$username=strtolower($username);
$password=strtolower($password);
$sql="SELECT FROM users WHERE username='$username' AND password='$password'";
$result=db_query($sql);
if (!$result || db_numrows($result) < 1){
header("Location: login_form.php?comments=ERROR:%20User%20not%20found%20or%20password%20incorrect');
} else {
if (!$result || db_numrows($result) > 1){
setcookie("user_cookie",$username,"","/");
header("Location: http://www.***.com/index.php");
}
?>
=========
Thanx