Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Form pour les informations sur la licence-->
- <form method="post" action="">
- <table>
- <tr>
- <td>Type</td>
- <td><input type=text name="type"></td>
- </tr>
- <tr>
- <td>Mention</td>
- <td>
- <select name="mention">
- <?php
- //Récupération des données de la table domaines
- $query_dm = "select * from domaines";
- $exec_dm = pg_query($db_bobo, $query_dm);
- while ($data = pg_fetch_object($exec_dm))
- {
- $codeDomaine = $data->code;
- $libelleDomaine = $date->libelle;
- echo "<optgroup label='$libelleDomaine'>";
- //Récupération des donées de la table mentions
- $query_mt = "select * from mentions where code_domaine = '$codeDomaine'";
- $exec_mt = pg_query($db_bobo, $query_mt);
- $n_mt = pg_num_rows($exec_mt);
- if($n_mt > 0)
- {
- while ($data = pg_fetch_object($exec_mt))
- {
- $idMention = $data->id;
- $libelleMention = $data->libelle;
- echo "<option value='mention'>$libelleMention</option>";
- }
- }
- echo "</optgroup>";
- }
- echo "</select></td></tr>";
- if($typeLicence == "professionnelle")
- {
- echo "<tr><td>Spécialité</td>
- <td><input type=text name='spécialite'></td></tr>";
- }
- ?>
- </form>
Add Comment
Please, Sign In to add comment