QUOTE(uncled1023 @ Jan 8 2009, 03:05 AM)

try putting a space between the else and the bracket so instead of else{ put else {
PHP is non space sensitive when it comes to brackets and if/else statements.. you can have it on as many lines and spaces as you like and it wouldn't make a difference.
QUOTE(shinjiketojapann @ Jan 8 2009, 06:18 AM)

it didn't work T_T
As far as this goes, try doing this:
CODE
<?php
session_start();
$group = $_SESSION['group'];
echo $group;
require('./template/header.php');
if($group > 2) { //group being greater than 2 would mean not a admin/mod
echo "<h2>Error</h2><P>Not Logged in</P>";
}else{
echo "<h2> Header Title </h2><p>Admin Body</p>";
}
require('template/footer.php');
?>
Echo the session $group back and see if it returns >2..
If you have further questions PM me, or aim/msn me and i can help
edit:
i would also suggest defining this as a function, and then calling the function at the top of each page.. that way you dont have to edit 20 pages anytime you want to modify this if/else statement.