On all the files like the one were u show news.. i change the font and it comes up with a error :S whys???

On all the files like the one were u show news.. i change the font and it comes up with a error :S whys???
is it in an echo? and wat error?
this is the error when i skin the admin zone.
PHP Code:Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/jamie/public_html/backend/files/index.php:2) in /home/jamie/public_html/backend/files/connect.php on line 2
post the coding...![]()
PHP Code:<div id="top">
<img border="0" src="top_logo.jpg" width="288" height="131"></div>
<div id="fade">
<!-- Empty -->
</div>
<center>
Welcome to the Backend!<br />
<br />
<?php include 'connect.php';
if ($_SESSION['username'] && $_SESSION['level'] == 1 ) {
echo ("
<strong>Navigation</strong><br />
<br />
<a href=\"add_news.php\">Add An Article</a> <br />
<a href=\"logout.php\">Logout</a> <br />");
}
elseif ($_SESSION['username'] && $_SESSION['level'] == 2 ) {
echo ("
<strong>Navigation</strong><br />
<br />
<a href=\"add_news.php\">Add An Article</a> <br />
<a href=\"delete_news.php\">Delete An Article</a> <br />
<a href=\"register_account.php\">Create A New User</a> <br />
<a href=\"/upload/backend.php\">Acsept Images</a> <br />
<a href=\"logout.php\">Logout</a> <br />");
}
else {
echo ("Please login");
}
php?>
</center>
</div>
<p align="center"> </p>
</body></html>
i dont see any added font?
The error means the session in index.php was already started in connect.php which is included into index.php
How do i fix?
dont set the session on the config file? :S
there aint a config.php :S
thats connect php :S
PHP Code:<?php
session_start();
$dbname = "jamie_cms";
$dbuser = "jamie_cms";
$dbpass = "cms";
mysql_connect ("localhost", $dbuser, $dbpass) or die ("Couldnt connect");
mysql_select_db ($dbname) or die ("Invalid Database name");
?>
Last edited by Jamieb; 03-10-2007 at 05:35 PM.
connect.php even![]()
Want to hide these adverts? Register an account for free!