Probleme Ajax liste deroulante

jesaye Messages postés 45 Date d'inscription   Statut Membre Dernière intervention   -  
jesaye Messages postés 45 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour,

Voila, pour mon club de foot j'ai une partie admin avec tous les matchs de mes equipe.
Je voudrais créer une liste deroulante avec nom des équipes (U19. U15. equipe 1. Véterans)
et quand je clique dessus je recois juste les données de ma base Sql concernant l'equipe choisis, voici mon code php que j'utilise actuellement mais c'est celui la affiche tous les matchs de toutes les equipes


<?php

if(isset($_GET['suppr']) && is_numeric($_GET['suppr']))
{
supprimermatchs($_GET['suppr']);
}

?>
<h1>Liste des Matchs</h1>

<div id="manage_tool">
<a href="index.php?page=match" title="Ajouter un Match">
<img src="./images/ajouter_data.png" />
<span>Ajouter</span>
</a>
<a href="index.php?page=list-match" title="Visualiser la liste">
<img src="./images/view_data.png" />
<span>Voir</span>
</a>
</div>

<div id="conteneur_tableau">

<ul id="theTable-tablePaginater" class="fdtablePaginater">
<li><a ... ><span>«</span></a></li>
<li><a ... ><span><</span></a></li>
<li><a ... ><span>1</span></a></li>
<li><a ... ><span>2</span></a></li>
...
<li><a ... ><span>N</span></a></li>
<li><a ... ><span>&rsaquo</span></a></li>
<li><div ... ><span>»</span></div></li>
</ul>

<table id="theTable" class="tabl_view" class="sortable-onload-3 no-arrow rowstyle-alt colstyle-alt paginate-10 max-pages-7 paginationcallback-callbackTest-calculateTotalRating paginationcallback-callbackTest-displayTextInfo sortcompletecallback-callbackTest-calculateTotalRating">
<thead>
<tr>
<th class="t_edit">Modif</th>
<th class="t_del">Suppr</th>
<th class="numid sortable-num">Num</th>
<th class="sortable-saison">Saison</th>
<th class="sortable-date">Date Match</th>
<th class="sortable-lieu">Lieu</th>
<th class="sortable-local">Local</th>
<th class="sortable-visiteur">Visiteur</th>
<th class="sortable-score_L">Scr Local</th>
<th class="sortable-score_V">Scr Visiteur</th>
<th class="sortable-forfait_L">Forf Local</th>
<th class="sortable-forfait_V">Forf Visiteur</th>
<th class="sortable-prolongation">Prolong</th>
<th class="sortable-tireauxbutes">Tir Bute</th>
<th class="sortable-tirebuteL">Tir Bute Local</th>
<th class="sortable-tirebuteV">Tir Bute Visiteur</th>
<th class="sortable-report">Report</th>
<th class="sortable-datereport">Date Report</th>
<th class="sortable-pointswin">Pts Gagné</th>
</tr>
</thead>
<tbody>
<?php
$result = get_list_matchs();
$num_ligne = 1; // initialisation du numero de chaque champs
while($match = mysql_fetch_assoc($result) ):
?>
<tr>
<td class="c_mod"><a href="index.php?page=match&modif=<?php echo $match['cal_id']; ?>" title="Modifier"><img src="./images/editer.png" /></a></td>
<td class="c_del"><a href="index.php?page=list-match&suppr=<?php echo $match['cal_id']; ?>" title="Supprimer" onclick="return(confirm('Etes-vous sûr de vouloir supprimer cette entrée?'));"><img src="./images/corbeille.gif" /></a></td>
<td class="t_num"><?php echo $num_ligne++; ?></td>
<td><?php echo $match['cal_saison']; ?></td>
<td><?php echo $match['cal_date']; ?></td>
<td><?php echo $match['cal_stade']; ?></td>
<td><?php echo $match['cal_locaux']; ?></td>
<td><?php echo $match['cal_visiteurs']; ?></td>
<td><?php echo $match['cal_score_locaux']; ?></td>
<td><?php echo $match['cal_score_visiteurs']; ?></td>
<td><?php echo $match['cal_forfait_locaux']; ?></td>
<td><?php echo $match['cal_forfait_visiteurs']; ?></td>
<td><?php echo $match['cal_prolong']; ?></td>
<td><?php echo $match['cal_tirsaubut']; ?></td>
<td><?php echo $match['cal_tirsaubut_locaux']; ?></td>
<td><?php echo $match['cal_tirsaubut_visiteurs']; ?></td>
<td><?php echo $match['cal_report_bool']; ?></td>
<td><?php echo $match['cal_report_date']; ?></td>
<td><?php echo $match['cal_gainspt']; ?></td>
</tr>
<?php endwhile; ?>
</tbody>
</table>
</div>
A voir également:

2 réponses

Overstyle Messages postés 32 Date d'inscription   Statut Membre Dernière intervention   1
 
Salut,

Que fait ta fonction get_list_matchs()?
Je ne la vois nulle part sur le code que tu as posté
0
jesaye Messages postés 45 Date d'inscription   Statut Membre Dernière intervention  
 
get list match se rapport dans un autre fichier sql_select.php qui se connecte a la base de donnée et select * From matchs ORDER BY cal_id
0