I'm fairly new to PHP, and I don't know a lot about it. I have had a go, but I don't know where I have gone wrong.
The code:
<?php
include('config.php');
if(isset($_SESSION['username']) and $_SESSION['moderator'] {
} else {
header("location:noaccess.php");
}
?>
The error: Parse error: syntax error, unexpected '}' in E:\LocalWebHost\htdocs\forum\test.php on line 4