Jointure dans plusieurs table

Par Opening1, il y a 6 ans


Bonjour,

Voila je rencontre un petit problème avec mon code.

j'aimerais faire une jointure sur trois table
table3 possède l'id table 2
table 2 possède l'id table1

<?php $jointure=$bdd->prepare("select paiement.code,dateEnregistrement,user,parametre.sciences_idtableSciences from paiement join parametre on paiement.parametre_idparametre=paranetre.idparametre AND sciences.monScience from parametre join sciences on parametre.sciences_idtableSciences=sciences.idtableSciences ORDER BY paiement.id ASC"); $executeJointure=$jointure->execute(); ?>

code html

<?php while( $rech=$jointure->fetch() ) : ?> <td><?= $rech['code'] ?></td> <td><?= $rech['dateEnregistrement'] ?></td> <td><?= $rech['user'] ?></td> <td><?= $rech['monScience'] ?></td> <?php endwhile ?>

Comme resultat il m'affiche un tableau vide
Merçi de m'aider

1 réponse

Opening1, il y a 6 ans

Personne n'a d'indice à me