Hello, I am making a Php script where I want only logged in people to view the page. So far I have done this:
"if (isset($_SESSION['login'])
{
logged in
}
else
{
not logged in
} "
But this shows up in the browser:
"Parse error: syntax error, unexpected '{' in /home/hamsterm/public_html/upload.php on line 48"
Can you help me fix my error please?
"if (isset($_SESSION['login'])
{
logged in
}
else
{
not logged in
} "
But this shows up in the browser:
"Parse error: syntax error, unexpected '{' in /home/hamsterm/public_html/upload.php on line 48"
Can you help me fix my error please?