Bonjour à tous,

J'ai un site internet sur lequel j'ai des pages de classements equipes et individuels.
Je tente d'afficher au passage de la souris sur le nom d'une équipe une sorte d'infobulle qui affiche les joueurs qui composent l'équipe.

Je vais chercher les classements dans une BDD
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
				<table id="sample2">
					<thead>
						<tr>
							<th>CL</th>
							<th>NOM</th>
							<th>OPÉRATEURS</th>
							<th>MG</th>
							<th>NIVEAU</th>
						</tr>
					</thead>
					<tbody>
						<?php
							$sqlQuery = 'SELECT * FROM db_final_2223';
							$indiv_finalStatement = $mysqlClient->prepare($sqlQuery);
							$indiv_finalStatement->execute();
							$indiv_final = $indiv_finalStatement->fetchAll();
							foreach ($indiv_final as $indiv_final) {
						?>
						<tr>
							<td class="rownums"></td>
							<td class="infob"><?php echo $indiv_final['DOUBLETTE'] ?>
								<span>
									<table>
										<thead>
											<tr>
												<th>NOM</th>
												<th>MG</th>
											</tr>
										</thead>
										<tbody>
										<?php
											$sqlQuery = 'SELECT * FROM jdb_final_2223 WHERE DOUBLETTE = ??????? ';
											$infobStatement = $mysqlClient->prepare($sqlQuery);
											$infobStatement->execute();
											$infob = $infobStatement->fetchAll();
											foreach ($infob as $infob) {
										?>
											<tr>
												<td><?php echo $infob['JOUEUR'] ?></td>
												<td><?php echo $infob['MG'] ?></td>
											</tr>
											<?php
												}
											?>
										</tbody>
									</table>
								</span>
							</td>
							<td><?php echo $indiv_final['OPE'] ?></td>
							<td><?php echo $indiv_final['MG'] ?></td>
							<td><?php echo $indiv_final['NIVEAU'] ?></td>
						</tr>
						<?php
							}
						?>
					</tbody>
				</table>
Je souhaiterai que le WHERE de la requete sql corresponde au nom de l'équipe.
J'ai donc tout bêtement pensé recopier <?php echo $indiv_final['DOUBLETTE'] ?> mais ça ne fonctionne pas et d'ailleurs tout ce que je teste ne fonctionne pas.
Souvent l'erreur c'est qu'il n'arrive pas a identifier DOUBLETTE

Pourtant si je remets ce morceau <?php echo $indiv_final['DOUBLETTE'] ?> n'importe ou sur la page ça fonctionne bien.

Donc la je sèche...

Merci d'avance pour votre aide.