session_cache_limiter

From: Date: Sat, 18 Jan 2003 22:43:40 +0000
Subject: session_cache_limiter
Groups: php.db 
Request: Send a blank email to php-db+get-24939@lists.php.net to get a copy of this message
hello, thank you for your time... i am getting a login name to print now on the new account page but i get the following error message: Warning: Cannot send session cache limiter - headers already sent (output started at /users/infoserv/web/register/ca/new_account.php:6) in /users/infoserv/web/register/ca/new_account.php on line 76 logname=tad@optixcom.com my code is as follows: <?
  session_start();                                                if (@$auth != "yes")
{
     header("Location: login.php");
     exit();
  }                                            include("config.php");
echo "logname=$logname<br>";
  $sql = "SELECT first_name,last_name FROM accounts                                 WHERE email='$logname'";
$result = mysql_query($sql)
               or die("Couldn't execute query 1.");
$row = mysql_fetch_array($result,MYSQL_ASSOC); extract($row); echo "
        <head><title>New Account Welcome</title></head>
        <h2 align='center' style='margin-top: .7in'>
        Welcome $first_name $last_name</h2>\n";
?> without the below:
session_start();                                                if (@$auth != "yes")
{
     header("Location: login.php");
     exit();
} i can not get the new account name to print from the form just submitted. any ideas are greatly appreciated and thank you again. addison -- Addison Ellis small independent publishing co. 114 B 29th Avenue North Nashville, TN 37203 (615) 321-1791 addison@bellsouth.net info@smipco.com subsidiaries of small independent publishing co. info@gloabaldog.com info@momandpocentral.com

« previous php.db (#24939) next »