function loterie_enregistre_participation($id_loterie) { $loterie_participant = new loterie_participant($_SESSION[AuthTroll], $id_loterie); if (!$loterie_participant->insert_db()) { $text = "<br>Une erreur est survenue. Contactez Bodega (49145) pour plus d'informations, "; $text .= " en copiant/collant ce que vous voyez. "; afficher_contenu_tableau($text); } else { afficher_contenu_tableau("Votre participation est enregistrée."); } }