1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| if (isset($_POST['numero_adh']))
{
$sql = "INSERT INTO table1
(
numero_adh,
nom_adh,
prenom_adh,
id_type_cotis,
montant_cotis,
reglt_type,
info_reglt,
date_enreg,
date_debut,
date_fin,
commentaire_cotis
)
VALUES (
'".$_POST['numero_adh']."',
'".$_POST['nom_adh']."',
'".$_POST['prenom_adh']."',
'".$_POST['id_type_cotis']."',
'".$_POST['montant_cotis']."',
'".$_POST['reglt_type']."',
'".$_POST['info_reglt']."',
'".$_POST['date_enreg']."',
'".$_POST['date_debut']."',
'".$_POST['date_fin']."',
'".$_POST['commentaire_cotis']."'
)";
$result = mysql_query($sql);
if ($result)
{
update=table2 set date_echeance = "$_POST date_fin" where numero_adh="$_POST_adh";
header("Location: ajout_cotis.php"); |
Partager