Warning: Cannot modify header information
Salut tout le monde :D
Enfin Big problème C pe être un grand mot mais ce genre d'erreur ma tjs donné du fils a retordre :
Code:
1 2
|
Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\site acupuncteur\sympexe.php:3) in C:\wamp\www\site acupuncteur\sympexe.php on line 38 |
La page sympexe.php sert a faire une recherche dans la BDD, la voici :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
<html>
<head>
<style>a:hover {color:#FFFFFF}</style>
</head>
<body bgcolor="#F3E0B4" link="#000000" alink="#000000" vlink="#000000">
<br>
<br>
<center>
<?php
$connect=mysql_connect("***","***","***");
$choix_db=mysql_select_db("***");
$select="SELECT num_sym FROM symptome WHERE nom_sym='$_POST[nom]'";
$res=mysql_query($select);
$row=mysql_fetch_row($res);
$nb=mysql_num_rows($res);
if ($nb==0)
{
echo "L'état <b>$_POST[nom]</b> n'existe pas<br>";
if (isset($_GET["cons"]))
{
echo "Cliquez <a href=\"consultation.php\" target=\"main\">ici</a> pour retourner à la page de consultation.";
}
else
{
echo "Cliquez <a href=\"searchsympt.php\" target=\"_self\">ici</a> pour effectuer une nouvelle recherche.";
}
}
else
{
if (isset($_GET["cons"]))
{
header("location:consultation.php?num=$row[0]");
}
else
{
header("location:searchsympt.php?num=$row[0]");
}
}
?>
</center>
</body>
</html> |
Comme vous pouvez le voir ce n'est pas une page très compliquer, mais je sèche sur ce message d'erreur, vous voulez bien me filer un coup de main s'il vous plait :)
MERCI
PS : Avant je travaillais sur PHP4 avec easy PHP 1.7 et maintenant je bosse sur PHP5 avec WAMP5. Ca peut pe être vous aider :wink: