Parse error: syntax error, unexpected '}' in C
Posted: Tue Jul 03, 2012 12:25 pm
How many causes that make this error occur? I check my code, but there is no syntax error, can anyone help me to review the code?
Here is my code......
Here is my code......
Code: Select all
session_start();
if(!session_is_registered(username)){
header("location:main_login.php");
}
session_register('admin');
include ("connect.php");
$userName = $_SESSION['admin'];
if($_SESSION['admin']!= null)
{
?>
<html>
blablablablablabla
blablablablablabla
blablablablablabla
</html>
<?php//invalid login
}
else
{
echo "<script language='javascript'>alert ('Invalid login')</script>";
echo "<script language='javascript'>window.location='login.php'</script>";
}
?>