when i am loged in it says u are not loged in and one know why?
<?php
//Connect to the Database
mysql_connect( 'Localhost', 'xx', 'xx' );
mysql_select_db( 'xxx' );
//Start Session
session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel='stylesheet' href='style.css' type='text/css'>
<title>Main Menu</title>
<div class="xxx">
<a href="store.php">Store</a>
<br><br>
<a href="nranks.php">Ranks</a>
<br>
<a href="cranks.php">town Ranks</a>
<br>
<a href="aranks.php">Attack Ranks</a>
<br><br>
</div>
<div class="zzz">
<a href="turntrick.php">Turn Tricks</a>
<br><br>
<a href="faqs.php">Faqs</a>
<br><br>
<a href="preferences.php">Preferences</a>
<br><br>
<a href="poll.php">Poll</a>
<br><br>
<a href="credits.php">Purchase Turns</a>
<br><br>
<a href="http://www.drugmoney.urlshort.com">LogOut</a>
</div>
</body>
</html>
<?
echo'<center>
<font size=\"2\">Drugmoney ©2006. All rights reserved.</font></center>';
/* ***** BELOW IS YOUR INFO ***** */
if ($_SESSION['username'] == yes) {
// They are logged in
} else {
//If user is NOT logged in
echo "Sorry, not logged in please <A href='index.php'>Login</a><br>";
}
?>