Jump to content

Help with an error PLEASE


briguy9872

Recommended Posts

sry to bother, but i need help again!!!
[code]
<style type="text/css">
body
{background:}</style>
<style>
body,td,font,div,p{font-family:tahoma;
font-size:10pt;
color: #336699;
line-height:8pt}
b{font-family:tahoma;
font-size:10pt;
color: #0066FF;
font-weight:bold}
a:link, a:active,a:visited
{font-family:tahoma;
font-size:10pt;
color: #0066FF;
text-decoration:none}
a:hover
{font-family:tahoma;
font-size:10pt;
color: #0066CC;
text-decoration:none}
input,textarea
{font-family:tahoma;
font-size:10pt;
color: #0066CC;
background-color: 0099FF;
border: solid 1px}
body{scrollbar-face-color:#0066CC; scrollbar-shadow-color:#006699;

scrollbar-highlight-color:#009900; scrollbar-3dlight-color:white;

scrollbar-darkshadow-color:black; scrollbar-track-color: #0066CC;

scrollbar-arrow-color: BLACK}
</style><center>
UNDER CONSTRUCTION!!! PLEASE PLEASE PLEASE WAIT!!!!!
But for now.......<br><br>
<?php
include 'dbconnect.php';
session_start();
?>
<?
if (isset($_SESSION['user']))
  {
    $user = $_SESSION['user'];
    $getuser = "SELECT * from register where userid='$user'";
    $getuser2 = mysql_query($getuser) or die("Could not get user info");
    $getuser3 = mysql_fetch_array($getuser2);

print "<BR>Welcome, $_SESSION[user], you may now access <a

href='http://www.tbanskorner.com/mail'>mail! Click<a

href=http://www.tbanskorner.com/logout.php> Here</a>To Logout.";
  

}
else
{
print 'You are not logged in. Please <a

href="http://www.tbanskorner.com/login.php">Log in</a>';

print ' Or <a href="http://www.tbanskorner.com/mail/register.php">Register</a>';

}

?>
<P><a href="http://www.tbanskorner.com/mail/login.php">Click here to

Login</a>
<br><a href="http://www.tbanskorner.com/mail/register.php">Not a member?

Click here to register for FREE</a>
<br><a href="http://tbanskorner.com/mail/">Click here to access mail.</a><br>
If you would like FREE mail to send to others on the site, click <a

href="http://www.tbanskorner.com/mail/register.php"><b>here</b></a>
[/code]
i get back the error:
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/content/t/b/a/tbanskorner/html/index2.php:1) in /home/content/t/b/a/tbanskorner/html/index2.php on line 35



Thanks in advance

ahhhh yes. i forgot to mention that it worked, however, the error came out. it said what i wanted it to say, but the error cam with it. I tried removing the session_start(); tag but it was fruitless.
Link to comment
Share on other sites

Anything that sends headers MUST come BEFORE ANY output!

session_start(); is often simply placed at the very top of the file as you can set it and forget it!.

Unless you are using outout buffering for caching then NO output should come before ANYTHING that has to send headers.
Link to comment
Share on other sites

[!--quoteo(post=361057:date=Apr 2 2006, 08:08 PM:name=ToonMariner)--][div class=\'quotetop\']QUOTE(ToonMariner @ Apr 2 2006, 08:08 PM) [snapback]361057[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Anything that sends headers MUST come BEFORE ANY output!

session_start(); is often simply placed at the very top of the file as you can set it and forget it!.

Unless you are using outout buffering for caching then NO output should come before ANYTHING that has to send headers.
[/quote]

Thank you. i will try that
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.