Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\Proyecto0\cabecera.php:6) in D:\AppServ\www\Proyecto0\modulos\calendario\index. php on line 21
Estue leyendo lo del whitespace en php pero no he encontrado ningun tipo de error de este tipo en mi codigo. Aqui os dejo los trozos de error que tira.
cabecera.php
Código PHP:
<!-- cabecera -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo"Kuchiyose NF » ".$seccionweb."";?></title>
<meta http-equiv="Content-Type"content="text/html;charset=utf-8" /><script type="text/javascript" src="cssverticalmenu.js"></script>
<link rel="stylesheet" type="text/css" href="styles.css" />
<?php include('modulos/calendario/databaseConnection.php');?>
</head>
<body>
Código PHP:
$checkDetails = mysql_query("SELECT id FROM user WHERE username='$username' AND password='$password' LIMIT 1", $conn);
if($checkDetails) {
if(mysql_num_rows($checkDetails) > 0) {
setcookie('nodstrumCalendarV2','1',time()+3600);// Cookie will expire in 1 hour.
Se que el fallo es que intenta actualizar la cookie, pero no se como arreglarlo.