Bonjour,
J'ai un problème avec mon code PHP j'essaie de faire une redirection, mais j'ai un message d'erreur je comprends pas pourquoi
<?php
include("../tools/config.php");
include("../tools/fonctions.php");
$fname = $_POST['fname'];
$mdp = $_POST['mdp'];
connexion() ;
$sql = "SELECT * FROM akaii_login";
$res = mysql_query($sql) ;
if ($res > 0)
{
while ($r = mysql_fetch_array($res))
{
if ($r['usrname'] == $fname)
{
if ($r['passwd'] == $mdp)
{
echo "Autentification acceptée" ;
header("Location:".$r['redirectURL']);
}
}
}
}
deconnexion() ;
?>
J'obtiens le message d'erreur suivant :
Warning: Cannot modify header information - headers already sent by (output started at c:\program files\easyphp1-8\www\akaii\login\login_check.php:21) in c:\program files\easyphp1-8\www\akaii\login\login_check.php on line 22
Merci de votre aide je suis débutant et là je sèche...
Configuration: Windows XP
Internet Explorer 7.0