Bonjour,

J'ai un tableau de "tache" qui me permet de voir l'ensemble de mes taches (Nom, Description, etc..) de ce type :
http://nsa21.casimages.com/img/2012/...3648697347.gif

J'aimerais que mes IdProjets -> NomProjet pareil pour contexte. J'ai essayé la jointure mais ça ne m'affiche plus rien dans mon tableau


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
 function VisionGlobaleTache() {
        $Sql = "SELECT* FROM tache WHERE RefUser=" . $this->RefUser . " LIMIT 8";
        $result = ExecSql($Sql) or die(__LINE__ . mysql_error() . $Sql);
        $Tab = array();
        for ($i = 0; $i < mysql_num_rows($result); $i++) {
            $Tab[] = mysql_fetch_assoc($result);
        }
        return $Tab;
    }
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
 
$VGT = new Tache();
$VGT->RefUser = $User->IdUser;
<?php $Tab = $VGT->VisionGlobaleTache(); ?>
                <!-- Aperçu dans un tableau Ajax des différentes taches en cours pour l'utilisateur connecté -->
                <table id="table-utilisateurs" class="tablesorter"><thead>
                        <tr>
                            <th>Nom</th>
                            <th>Note</th>
                            <th>Projet</th>
                            <th>Contexte</th>                        
                            <th>Priorite</th>
                            <th>Duree</th>
                            <th>Etat</th>
                            <th>Date Début</th>
                            <th>Date Fin</th>
                            <th>Action</th>
                        </tr></thead>
                    <!-- Boucle permettant d'afficher le résultat de la requête sur les taches -->
                    <?php
                    for ($i = 0; $i < count($Tab); $i++) {
                        $VGT = $Tab[$i];
                        ?>                 
                        <tr>
                            <td id="Nom-            <?php echo $VGT['IdTache']; ?>" class="cellule" ondblclick="inlineMod(<?php echo $VGT['IdTache']; ?>, this, 'Nom',          'Texte')"><?php echo $VGT['Nom']; ?></td>
                            <td id="Description-    <?php echo $VGT['IdTache']; ?>" class="cellule" ondblclick="inlineMod(<?php echo $VGT['IdTache']; ?>, this, 'Note',         'Texte')"><?php echo $VGT['Note']; ?></td>
                            <td id="Projet-         <?php echo $VGT['IdTache']; ?>" class="cellule" ondblclick="inlineMod(<?php echo $VGT['IdTache']; ?>, this, 'RefProjet',    'Texte')"><?php echo $VGT['RefProjet']; ?></td>
                            <td id="Contexte-       <?php echo $VGT['IdTache']; ?>" class="cellule" ondblclick="inlineMod(<?php echo $VGT['IdTache']; ?>, this, 'RefContexte',  'Texte')"><?php echo $VGT['RefContexte']; ?></td>
                            <td id="Priorite-       <?php echo $VGT['IdTache']; ?>" class="cellule" ondblclick="inlineMod(<?php echo $VGT['IdTache']; ?>, this, 'Priorite',     'Texte')"><?php echo $VGT['Priorite']; ?></td>
                            <td id="Duree-          <?php echo $VGT['IdTache']; ?>" class="cellule" ondblclick="inlineMod(<?php echo $VGT['IdTache']; ?>, this, 'Duree',        'Texte')"><?php echo $VGT['Duree']; ?>H</td>
                            <td id="Etat-           <?php echo $VGT['IdTache']; ?>" class="cellule" ondblclick="inlineMod(<?php echo $VGT['IdTache']; ?>, this, 'Etat',         'Texte')"><?php echo $VGT['Etat']; ?>%</td>
                            <td id="DateCreation-   <?php echo $VGT['IdTache']; ?>" class="cellule" ondblclick="inlineMod(<?php echo $VGT['IdTache']; ?>, this, 'DateCreation', 'Texte')"><?php echo $VGT['DateCreation']; ?></td>
                            <td id="DateEcheance-   <?php echo $VGT['IdTache']; ?>" class="cellule" ondblclick="inlineMod(<?php echo $VGT['IdTache']; ?>, this, 'DateEcheance', 'Texte')"><?php echo $VGT['DateEcheance']; ?></td>
                            <td><a href="deletetache.php?id=<?php echo $VGT['IdTache']; ?>"><input type ="submit" value="Suppprimer" /></a></td>
                        </tr>             
                    <?php } ?>
                </table>
Que dois-je faire? Merci par avance