Old 06-27-2007   #1 (permalink)
Registered User
 
Join Date: Jun 2007
Posts: 2

Help me whit this php error please

can som1 help me with the errors on my site : Bizzlife

Thanks!!!
Dilinatorke is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06-27-2007   #2 (permalink)
Janitor of Lunacy
 
tamlin's Avatar
 
Join Date: May 2006
Location: Sitting in the Wishing Chair
Posts: 4,702

Warning: Cannot send session cache limiter - headers already sent
__________________


Religion: It's all fun and games until someone gets burned at the stake...
tamlin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06-27-2007   #3 (permalink)
Rusty Bio-Hazard!
 
notjustgraphics's Avatar
 
Join Date: Sep 2006
Location: Toronto, Ontario, Canada
Posts: 1,026

Send a message via MSN to notjustgraphics
Looks like a path error to your sessions directory...

But without the code, theres no real way to help you...

Can you post the code of your index.php here?

Mike.
__________________
notjustgraphics is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06-27-2007   #4 (permalink)
Registered User
 
Join Date: Jun 2007
Posts: 2

login.php code:


Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/hatml; charset=iso-8859-1" />
<title>Login</title>

<link href="style.css" rel="stylesheet" type="text/css" />
<?php
session_start();
include 'config.php';

if(isset($_POST['login']))
{

$username = trim(addslashes($_POST['username']));
$password = md5(trim($_POST['password']));

$query = mysql_query("SELECT * FROM Users WHERE Username = '$username' AND Password = '$password' LIMIT 1") or die(mysql_error());

$row = mysql_fetch_array($query);

// now we check if they are activated

if(mysql_num_rows($query) > 0)
{

if($row['Activated'] > 0)
{

$_SESSION['s_logged_n'] = 'true';
$_SESSION['s_username'] = $username;
$_SESSION['s_name'] = $row['Name'];

header("Location: member.php");

} else {

echo '
<html>
<head>
<title>Login</title>
<link href="style.css" rel="stylesheet" type="text/css">

</head>

<body>
<div id="error"><p>Sorry, you must activate your account first. Please check your email for the email.</p>
<p>Didn'."'".'t get your validation email? <a href="resend.php">Click here</a> to resend the validation email.</p></div>
</body>
</html>
';

}

} else {

echo '
<html>
<head>
<title>Login</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>

<body>
<div id="error"><p>There was an error processing your login, it appears that your username and/or password was incorrect. Please try again.</p>
<p>Didn'."'".'t get your validation email? <a href="resend.php">Click here</a> to resend the validation email.</p>

</div>
</body>
</html>
';

}

} else {

?>
</head>

<body>
<center>
  <table width="800" border="1">
    <tr>
      <th scope="col"><table width="800" height="924" border="0" bgcolor="#CCCCCC">
  <tr>
    <th height="39"><?php
	include "upper.htm";
	?>
      </p>
      <hr /></th>
  </tr>
  <tr>
    <td height="834"><p>
      
    </p>
      <div id="wrapper">
        <div id="head">Login</div>
        <br />
        <div id="main">
          <p>Je moet hier inloggen om deze pagina te kunnen zien. Type je Username en wachtwoord in! </p>
          <form method="post" action="<?= $_SERVER['PHP_SELF'] ?>">
            <p>Username:<br />
                <input name="username" type="text" cid="username" />
            </p>
            <p>Wachtwoord:<br />
                <input name="password" type="password" id="password" />
            </p>
            <p>
              <input name="login" type="submit" id="login" value="Submit" />
            </p>
          </form>
          <p>Kreeg je je activeringsmail niet? <a href="resend.php">Klik hier </a> om de activeringsmail opnieuw aan te krijgen. </p>
          <p>Nog geen account? <a href="register.php">Klik hier </a>om te registreren. Het is volledig gratis ! </p>
        </div>
      </div>
      <p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p></td>
  </tr>
  <tr>
    <td height="30"><?php
	include "down.htm";
	?></td>
  </tr>
</table></th>
    </tr>
  </table>
  
</center>
</body>
</html>
<? } mysql_close($l); ?>
Dilinatorke is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06-27-2007   #5 (permalink)
Rusty Bio-Hazard!
 
notjustgraphics's Avatar
 
Join Date: Sep 2006
Location: Toronto, Ontario, Canada
Posts: 1,026

Send a message via MSN to notjustgraphics
<?php
session_start();
include 'config.php';
?>

Try moving this to the very top of the page... BEFORE the HTML headers...

In order to start a session, it has to be initiated before any HTML is sent to the user for which the session is being created...

Mike.
__________________
notjustgraphics is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06-28-2007   #6 (permalink)
Registered User
 
Join Date: Aug 2004
Posts: 105

NJG is absolutely correct.

php session_start(); or ob_start(); must always be the first line of code on any page.
Jolt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Macronimous- Command Line Scripting in PHP macro123 HTML / PHP / ASP / JS 1 03-30-2007 02:50 AM
PHP in HTML ultranet HTML / PHP / ASP / JS 3 01-04-2007 09:07 AM
Ajax and PHP sanjitster HTML / PHP / ASP / JS 2 06-03-2006 04:22 AM
Pro's and Con's to Upgrading PHP pipersdragon HTML / PHP / ASP / JS 1 12-29-2005 11:43 PM
Digital's Quick and Dirty Guide to PHP Order HTML / PHP / ASP / JS 15 05-05-2004 01:18 AM


All times are GMT +1. The time now is 07:52 AM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2007 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT