Simple demande, j'aurai besoin de votre aide car je suis bloqué dans mon code.
Voici les trois fichiers :
Un premier formulaire qui lui fonctionne sans problème (intitulé form.arbitre.consultation.php):
<!DOCTYPE html>
<html>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="css/style.css">
<head>
<title>Consultation par arbitre</title>
</head>
<body>
<form method="POST" action="form/info_arbitre.php">
<SELECT name="liste_arbitre" onchange='submit()'>
<?php
include 'include/fonctions.php';
$connex = connexion_bd();
$req = 'SELECT * FROM arbitre';
$resultat = $connex->query($req);
while($ligne = $resultat->fetch(PDO::FETCH_OBJ)){
?>
<OPTION value ="<?php echo $ligne->num_arbitre; ?>"> <?php echo $ligne->nom_arbitre. " ". $ligne->prenom_arbitre;?></OPTION>
<?php
}
?>
</SELECT>
</form>
</body>
</html>
Voici ensuite le deuxième formulaire(info_arbitre):
<!DOCTYPE html>
<html>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="css.css">
<head>
<title>Convocation</title>
</head>
<body>
<form method="POST" action="form/info_convocation.php">
<?php
require ('../include/fonctions.php');
$connex = connexion_bd();
$req2='SELECT * FROM arbitre a left join club c on a.num_club=c.num_club WHERE num_arbitre='.$_POST['liste_arbitre'];
$resultat = $connex->query($req2);
while($ligne = $resultat->fetch(PDO::FETCH_OBJ)){
?>
<table>
<tr><th>NOM</th><th>PRENOM</th><th>VILLE</th><th>CP</th><th>DATE DE NAISSANCE</th><th>TELEPHONE</th><th>E-MAIL</th><th>CLUB</th></tr>
<th><?php echo "$ligne->nom_arbitre"?></th>
<th><?php echo "$ligne->prenom_arbitre"?></th>
<th><?php echo "$ligne->ville_arbitre"?></th>
<th><?php echo "$ligne->cp_arbitre"?></th>
<th><?php echo "$ligne->date_naissance_arbitre"?></th>
<th><?php echo "$ligne->tel_fixe_arbitre"?>
<?php echo "$ligne->tel_port_arbitre"?></th>
<th><?php echo "$ligne->mail_arbitre"?></th>
<th><?php $club=$ligne->nom_club;
if(is_null($ligne->num_club))
{
echo "Aucun";
}else{
echo "$club";
}
?>
</th></tr>
</table>
<?php
}?>
<SELECT name="liste_match" onchange='submit()'>
<?php
$connex = connexion_bd();
// $req = "SELECT * FROM arbitre a inner join club c on a.num_club=c.num_club équipe e on a.num_club=e.num_club championnat ch on e.num_championnat=ch.num_championnat type_championnat tc on ch.num_type_championnat=tc.num_type_championnat WHERE num_arbitre_s or num_arbitre_p=".$_GET['liste_arbitre'];
$req3= '(SELECT * FROM matchs m inner join arbitre a on m.num_arbitre_s=a.num_arbitre Where m.num_arbitre_s='.$_POST['liste_arbitre'].'
)UNION
(SELECT * FROM matchs m inner join arbitre a on m.num_arbitre_p=a.num_arbitre Where m.num_arbitre_p='.$_POST['liste_arbitre'].')';
$resultat = $connex->query($req3);
while($ligne = $resultat->fetch(PDO::FETCH_OBJ)){
?>
<option value ="<?php echo $ligne->num_match;?>"> <?php echo $ligne->date_match. " ". $ligne->heure_match;?></OPTION>
<?php } $resultat->closeCursor(); ?></select>
<?php
$resultat->closecursor();
?>
</form>
</body>
</html>
Et enfin le dernier fichier qui semble contenir le problème même si je ne suis pas sûr de cela (info_convocation):
<!DOCTYPE html>
<html>
<meta charset="utf-8" />
<head>
<title>Consultation</title>
</head>
<body>
<form method="POST" action="">
<?php
require ('../include/fonctions.php');
$connex = connexion_bd();
$req3='SELECT * FROM matchs m inner join équipe e on m.num_equipe_1=e.num_equipe inner join salle s on m.num_salle=s.num_salle WHERE num_match =='.$_POST['liste_match'];
$result = $connex->query($req3);
while($ligne = $result->fetch(PDO::FETCH_OBJ)){
?>
<table>
<tr><th>N°</th><th>SALLE</th><th>ADRESSE</th><th>DATE</th><th>HEURE</th><th>EQUIPE 1</th><th>EQUIPE 2</th><th>CO-ARBITRE</th><th>REMUNERATION</th></tr>
<th><?php echo "$ligne->num_match"?></th>
<th><?php echo "$ligne->num_salle"?></th>
<th><?php echo "$ligne->adresse_salle"?></th>
<th><?php echo "$ligne->date_match"?></th>
<th><?php echo "$ligne->heure_match"?></th>
<th><?php echo "$ligne->"?>
<?php echo "$ligne->tel_port_arbitre"?></th>
<th><?php echo "$ligne->mail_arbitre"?></th>
<th><?php echo "$ligne->num_equipe_1"?></th>
<th><?php echo "$ligne->num_equipe_2"?></th>
</th></tr>
</table>
<?php
}
$resultat->closecursor();
?>
</form>
</body>
</html>

En sélectionnant un arbitre par son nom, on tombe sur la page suivant qui semble tout autant fonctionner:

En selectionnant ensuite une date de match, on obtient les erreurs suivantes;

