Cannot modify header information - headers

Résolu/Fermé
gabbermaniac Messages postés 137 Date d'inscription mercredi 4 mars 2009 Statut Membre Dernière intervention 23 août 2011 - 28 avril 2010 à 14:31
gabbermaniac Messages postés 137 Date d'inscription mercredi 4 mars 2009 Statut Membre Dernière intervention 23 août 2011 - 28 avril 2010 à 14:39
Bonjour

je rencontre un problème en ligne que je n'ai pas en local;
J'ai une page addcom.php:

require "../../connect.php";
$pseudo = mysql_real_escape_string(htmlspecialchars($_POST["pseudo"]));
$contenu = mysql_real_escape_string(htmlspecialchars($_POST["contenu"]));
$mail = mysql_real_escape_string(htmlspecialchars($_POST["mail"]));
$url = mysql_real_escape_string(htmlspecialchars($_POST["url"]));
$news_id = $_POST["news_id"];
$sql="INSERT INTO commentaires (pseudo,url,mail,contenu,news_id) VALUES ('$pseudo','$url','$mail','$contenu','$news_id')";
$req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
header("Location: ../../index.php?p=news/voir&id=$news_id");
?>

Quand on poste un message cela me met le message suivant :

Warning: Cannot modify header information - headers already sent by (output started at /homez.341/playmoci/www/content/news/addcom.php:2) in /homez.341/playmoci/www/content/news/addcom.php on line 13


Qu'est ce que cela signifie?
merci à vous

1 réponse

gabbermaniac Messages postés 137 Date d'inscription mercredi 4 mars 2009 Statut Membre Dernière intervention 23 août 2011 12
28 avril 2010 à 14:39
ok il ne faut pas laisser de blanc! c'est bon
-1