I got an error:
Parse error: syntax error, unexpected end of file in the line
With this code:
I saw some errors, which I've fixed below.
This is what I got as being erroneous:
if (login())
{?>
Welcome Administrator
Upload Files
Edit Points Tally
This is how I would have done it:
some code
0)
{
return true;
}
else
{
return false;
}
}
if (login())
{
echo 'Welcome Administrator
Upload Files
Edit Points Tally';
}
else
{
echo "Incorrect login details. Please login";
}
?>
some more html code