bonjour,
voici mon code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
 
<?php
require_once('../classes/Power_Ordre.class.php');
require_once('../classes/Power_Arbitre.class.php');
require_once('../classes/Power_OutilBD.class.php');
$ordres = array();
$NumPartie = $_POST['NumPartie'];
$couleur = $_POST['couleur'];
$arbitre = new Power_Arbitre($NumPartie, array());
$numTour = $_POST['numTour'];
 
for($i = 1 ; $i <= 5 ; $i++){
	$initialeUnite = strtoupper($_POST['O'.$i.'unite']);
	$depart = strtoupper($_POST['O'.$i.'depart']);
	$arrivee = strtoupper($_POST['O'.$i.'arrivee']);
	$ordre = new Power_Ordre($i, $couleur, $initialeUnite, $depart, $arrivee);
	$arbitre->DB->enregistrerOrdre($ordre);
	//mettre le joueur a joué
}
 
 
//$arbitre->DB->insererEvenements($numTour, $couleur, "Joué");
//rediriger vers accéder plateau
header('Location: index.php');
 
 
?>
et voici ce j'obtient comme erreur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
Warning: Cannot modify header information - headers already sent by (output started at c:\projets\portail_jeux\power\classes\Power_Arbitre.class.php:559) in c:\projets\portail_jeux\power\affichage\effectuerordre.php on line 23
Merci