prepare('SELECT question.id_question FROM question, liaisonFQ, formulaire WHERE formulaire.id_formulaire = :idParc AND formulaire.id_formulaire = liaisonFQ.id_formulaire AND liaisonFQ.id_question = question.id_question'); $req->execute(array( 'idParc'=>$idParc, )); } catch (Exception $e){ echo 'Erreur : '.$e->getMessage(); } echo 'Questions
'; while(($result = $req->fetch(PDO::FETCH_ASSOC)) != null){ echo $result['id_question']."
"; } ?>