executerRequete($sql, array($idQuittance)); if ($quittance->rowCount() > 0) return $quittance->fetch(PDO::FETCH_ASSOC); //return $quittance->fetchAll(PDO::FETCH_ASSOC); (si plusieurs lignes) else throw new Exception("Aucun quittance ne correspond au id '$idQuittance'"); } }