ok merci 
voilà la partie de select multiple:
1 2 3 4 5 6 7 8 9
| <select name="nom[]" id="nom" multiple>
<option value="" selected >Selectionnez : </option>
<?php
$respo = mysql_query("SELECT * FROM partenaire ORDER BY nom ASC");
while($affiche_respo= mysql_fetch_array($respo)){
echo '<option value="'.$affiche_respo['nom'].' '.$affiche_respo['prenom'].':'.$affiche_respo['c_ordremedecin'].'">'.$affiche_respo['nom'].' '.$affiche_respo['prenom'].' ('.$affiche_respo['c_ordremedecin'].')</option>';
}
?>
</select> |
Et voilà ma requête inserrt
$qer = mysql_query('insert into aff(liste,cyc_visite,datetime,region,ville,secteur,nom,nomm,code) values("'.addslashes($_POST['liste']).'","'.addslashes($_POST['cyc_visite']).'","'.addslashes($_POST['datetime']).'","'.addslashes($_POST['region']).'","'.addslashes($_POST['ville']).'","'.addslashes($_POST['secteur']).'","'.addslashes($nomM).'","'.addslashes($_POST['nom']).'","'.addslashes($code3).'")');
Partager