Page 1 of 1

Setcookie

Posted: Thu Jun 05, 2003 2:33 pm
by silgol
The following mistake appears

Warning: Cannot modify header information - headers already sent by (output started at /usr/local....

The script is:

$result=mysql_db_query("auth","select * from Personal1");
$result1= mysql_query("SELECT Legajo FROM Personal1 WHERE Legajo='$legajoing'");

if(!$result1)
{
echo "Password error";
exit;
}
else
{
echo $legajoing;
setcookie("usuario",$Legajoing,time()+7776000);
}
mysql_free_result($result1);
mssql_close;

Posted: Thu Jun 05, 2003 3:12 pm
by twigletmac