Header:
PHP Code:
<?php
    
include 'config.php';
    
session_start();
?>
    <html>
        <head>
            <title>
                Ebricity!
            </title>
        </head>


<?php    
    
    
if (isset($_COOKIE['username']) && isset($_COOKIE['password'])) // Authenticate.
    
{
        
$cookieUsername $_COOKIE['username'];
        
$cookieMD5Password $_COOKIE['password'];
        
$CheckCookie = @mysql_query('SELECT * FROM players WHERE username = '                 $cookieUsername ' AND password = ' .                         $cookieMD5Password);
        if (
mysql_num_rows($CheckCookie) != 1)
        {
            include 
'login.php';
            exit;
        }

        
$row mysql_fetch_array($CheckCookie);

        
$username $cookieUsername;
        
$credits $row['credits'];
        
$rank $row['rank'];
        
$frozenmsg $row['frozenmsg'];
        
$frozenby $row['frozenby'];
            
    
    if (
$rank == 1)
    {
        echo 
$frozenmsg "<br />&nbsp;<br />--" $frozenby;
    }

?>
Footer:
PHP Code:
<?php
    
}
    else
    {
        include 
'login.php';
    }
?>
I'm getting parse errors after the last line of the header, so I assume it's a bracket problem, but this conceivably should work, but it isn't.