The_tiger85
New Member
J'ai une requête en SQL dans une page PHP et elle ne marche pas et je ne comprend pas pourquoi !! :wacko:
Voici ma requête :
$query_lot = "INSERT INTO lot VALUES ( ".$_POST['txtNumMarche2'].", ".$nument.", '".$_POST['Procedure2']."', ".$nummarche.", '".$_POST['txtNomLot2']."', '".changer_date($_POST['txtDateNot2'])."', '".changer_date($_POST['txtDateDeb2'])."', '".changer_date($_POST['txtDateFin2'])."', '".changer_date($_POST['txtDateSolde2'])."', '".$_POST['txtResp2']. "', '".$_POST['txtPosteResp2']."', ".$_POST['txtMontantMini2'].", ".$_POST['txtMontantMaxi2'].", ".$_POST['txtMontantReel2'].", '".$_POST['txtComBC2']."', ".$_POST['txtMontant2'].", '".$_POST['txtCom2']."', '".$_POST['txtComEnt2']."');";
$result_lot = mysql_query($query_lot, $marches) or die("lot".mysql_error());
Bon, j'espère que quelqu'un pourra m'aider !!
Merci !!!
Voici ma requête :
$query_lot = "INSERT INTO lot VALUES ( ".$_POST['txtNumMarche2'].", ".$nument.", '".$_POST['Procedure2']."', ".$nummarche.", '".$_POST['txtNomLot2']."', '".changer_date($_POST['txtDateNot2'])."', '".changer_date($_POST['txtDateDeb2'])."', '".changer_date($_POST['txtDateFin2'])."', '".changer_date($_POST['txtDateSolde2'])."', '".$_POST['txtResp2']. "', '".$_POST['txtPosteResp2']."', ".$_POST['txtMontantMini2'].", ".$_POST['txtMontantMaxi2'].", ".$_POST['txtMontantReel2'].", '".$_POST['txtComBC2']."', ".$_POST['txtMontant2'].", '".$_POST['txtCom2']."', '".$_POST['txtComEnt2']."');";
$result_lot = mysql_query($query_lot, $marches) or die("lot".mysql_error());
Bon, j'espère que quelqu'un pourra m'aider !!
Merci !!!