par
jojo28 » 21 mai 2014, 14:45
C' est bon ma jointure fonctionne
$reponse = $bdd->query("SELECT nom, prenom, date, statut, telephone1, telephone2, adressemail, ville1, codePostal1, Adresse1, ville2, codePostal2, Adresse2, username, password, avatar, nom_instrument FROM membre INNER JOIN joue ON membre.id_membre = joue.id_membre INNER JOIN instruments ON joue.id_instrument = instruments.id_instrument WHERE username='{$_SESSION['pseudo']}'");
Voici le code
C' est bon ma jointure fonctionne
$reponse = $bdd->query("SELECT nom, prenom, date, statut, telephone1, telephone2, adressemail, ville1, codePostal1, Adresse1, ville2, codePostal2, Adresse2, username, password, avatar, nom_instrument FROM membre INNER JOIN joue ON membre.id_membre = joue.id_membre INNER JOIN instruments ON joue.id_instrument = instruments.id_instrument WHERE username='{$_SESSION['pseudo']}'");
Voici le code