Well guys this is the first time iam actually using php... i encountered these errors .. can some one tell me how i can rectify them
Error:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/dynastyr/public_html/rebellion-rpg/header.php:7) in /home/dynastyr/public_html/rebellion-rpg/header.php on line 7
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/dynastyr/public_html/rebellion-rpg/header.php:7) in /home/dynastyr/public_html/rebellion-rpg/header.php on line 7
Here is the Lines from the source code:
<head><title>Rebellion-RPG</title>
<link rel=stylesheet href=style.css>
</head><body leftmargin=0 rightmargin=0 onload="window.status='ExoFusion [v3]'">
<?php include("config.php"); include("game_funcs.php"); session_start(); ?>
<?php
if (!session_is_registered("email") || !session_is_registered("pass")) {
print "Sesion has expired.";
exit;
}
$stat = mysql_fetch_array(mysql_query("select * from players where email='$email' and pass='$pass'"));
if (empty ($stat[id])) {
print "Invalid login.";
exit;
}
$ctime = time();
mysql_query("update players set lpv=$ctime where id=$stat[id]");
$ip = "$HTTP_SERVER_VARS[REMOTE_ADDR]";
mysql_query("update players set ip='$ip' where id=$stat[id]");
mysql_query("update players set page='$title' where id=$stat[id]");
?>
" Well Please guys i need help...!! Please reply asap " thanks.. Sal