Bonjour,
J'ai un petit souci avec mon code je comprend pas de ou viens mon erreur car rien ne s'affiche...
pour expliquer rapidement, j'ai 2 table "therapeute_patient" et "therapeutes"
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 <?php $sql = mysql_query("select id_patient, id_therapeute from therapeute_patient where id_patient = '$idpatient' ORDER BY id ASC"); while($donnees = mysql_fetch_array($sql)) { $datatherapeute= htmlentities($donnees['id_therapeute']) ; $sqlthe = mysql_query("select nom, prenom, specialite from therapeutes where id = '$datatherapeute'"); $donneestherapeute = mysql_fetch_array($sqlthe)or die(mysql_error()); $datas = htmlentities($donneestherapeute['nom']).' '.htmlentities($donneestherapeute['prenom']).' ['.htmlentities($$donneestherapeute['specialite']).'] <br />'; echo $datas; } ?>
"therapeute_patient" et constituer de3 colonne : id, id_patient et id_therapeute
a l'aide de l'id_therapeute je vais récupérer les information du thérapeute afin d'afficher son nom son prénom et sa spécialité.
Malheureusement rien ne s'affiche.. l'id du thérapeute est bien récupérer dans la variable " $datatherapeute" j'ai vérifier en faisant un ECHO.
Merci pour votre aide
Partager