I got an error:
Parse error: syntax error, unexpected end of file in the line
With this code:
function login()
{
// Login function code
}
if (login())
{?>
Welcome Administrator
Upload Files
Edit Points Tally
else
{
echo "Incorrect login details. Please login";
}
?>
Some more HTML code
What's the problem?
Answer
You should avoid this (at the end of your code):
{?>
and this:
You shouldn't put brackets directly close to the open/close php
tag, but it separate with a space:
{ ?>
also avoid and use
No comments:
Post a Comment