[Syntaxe] variable qui se perd
Bonjour, j ai une valeur qui se perd au cours de mon code et je nsais pas pourquoi. Ma valeur c est la suivante : $datap['etat']
et c'est à mon deuxième echo que je perds ma valeur :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
$sqlp = sprintf("select * from lldiffusion_commande where id=%s", quote_smart($_GET['commande']));
$reqp = mysql_query($sqlp) or die('Erreur SQL : <br />'.$sqlp);
$datap = mysql_fetch_assoc($reqp);
echo $datap['etat'];
if (($datap['type_paiement'] =! 'contre remboursement') or ($datap['etat'] =! 'attente confirmation par mail'))
{
header("Location: http://www.lldiffusion.com?pro=paiement_cr&commande=ko_02");
}
echo $datap['etat'];
if ($datap['etat'] == 'confirmation mail ok')
{
header("Location: http://www.lldiffusion.com/index.php?pro=paiement_cr_etape02&err=conf_mail_ok");
} |
merci de votre aide.