Open(); switch($pdfdoc) { case "lettre_resa_planning" : default : // chercher id_empr validé $q = "select distinct (resa_idempr) from resa_planning where id_resa in (".addslashes($id_resa).") and resa_validee=1 "; $r = pmb_mysql_query($q, $dbh) ; while($o=pmb_mysql_fetch_object($r)) { lettre_resa_planning_par_lecteur($o->resa_idempr) ; } $ourPDF->SetMargins($marge_page_gauche,$marge_page_gauche); break; } if ($probleme) { echo "" ; }else { $ourPDF->OutPut(); }