Cannot modify header information - headers
Résolu
gabbermaniac
Messages postés
137
Date d'inscription
Statut
Membre
Dernière intervention
-
gabbermaniac Messages postés 137 Date d'inscription Statut Membre Dernière intervention -
gabbermaniac Messages postés 137 Date d'inscription Statut Membre Dernière intervention -
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
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
A voir également:
- Cannot modify header information - headers
- Information d'identification réseau - Guide
- L'en-tête du document comporte une information qui n’apparaît pas à l'impression car elle est de couleur blanche. de quelle information s'agit-il ? ✓ - Forum Bureautique
- Gpt header corruption ✓ - Forum Windows 10
- Information pc - Guide
- Bad pool header ✓ - Forum Windows 7