$table=mysql_query("SELECT date FROM instance LIMIT 1");
$table_resultat=mysql_fetch_array($table);
$date=explode("-",$table_resultat["date"]);
//afficher le mois
echo "Mois: $date[1]<br>";
//afficher le jours
echo "Jours: $date[2]<br>";
echo "Annee: $date[0]";
$query = "insert into sla SET date='".$_POST['annee']."''".$_POST['mois']."''".$_POST['jour']."', type='".$_POST['type']."',
sla='".$_POST['sla']."', total='".$_POST['total']."'";
Code : Tout sélectionner
<option>NomMois</option>echo "<option value=".$index.">".$tabMois[index]."</option>";
Et dans ta bdd, tu enregistre $index !!!!<?php echo "<option value=".$index.">".$tabJour[index]."</option>"; ?>
<?php echo "<option value=".$index.">".$tabMois[index]."</option>"; ?>
<?php echo "<option value=".$index.">".$tabAnnee[index]."</option>"; ?>
et j'enregistre dans ma table date=$index
$date = $_POST["annee"]."-".$_POST["mois"]."-".$_POST["jour"];