Veuillez vraiment m'escuser pour ce long code mais jai vraiment besion de votre aide je suis sencer ajouter un nouveau module logiciel a la partie de notre site mais lorsque je le fait on me dit column not null aidez moi ci possible voici le code je pense concerner
vraiment besion de vous l'element a ajouter est "gestcompta" voici la page de comande du site
http://webtechm.net/index.php?pg=commande
Modifié par POLAMALU (09 Aug 2016 - 11:36)
if(isset($_POST['gestrans_mer']))
{
$mer="[".$_POST['gestrans_mer']."]";
$packmer="[".$_POST['Radiogestransmer']."]";
}
else
{
$mer="";
$packmer="";
}
if(isset($_POST['gestrans_air']))
{
$air="[".$_POST['gestrans_air']."]";
$packair="[".$_POST['Radiogestransair']."]";
}
else
{
$air="";
$packair="";
}
if(isset($_POST['gestescale']))
{
$escale="[".$_POST['gestescale']."]";
$packescale="[".$_POST['Radiogestescale']."]";
}
else
{
$escale="";
$packescale="";
}
if(isset($_POST['gestposit']))
{
$posit="[".$_POST['gestposit']."]";
$packposit="[".$_POST['RadioGestposit']."]";
}
else
{
$posit="";
$packposit="";
}
if(isset($_POST['gestfact']))
{
$fact="[".$_POST['gestfact']."]";
$packfact="[".$_POST['RadioGestfact']."]";
}
else
{
$fact="";
$packfact="";
}
if(isset($_POST['gestship']))
{
$ship="[".$_POST['gestship']."]";
$packship="[".$_POST['RadioGestship']."]";
}
else
{
$ship="";
$packship="";
}
if(isset($_POST['gestmanut']))
{
$manut="[".$_POST['gestmanut']."]";
$packmanut="[".$_POST['RadioGestmanut']."]";
}
else
{
$manut="";
$packmanut="";
}
if(isset($_POST['gestparc']))
{
$parc="[".$_POST['gestparc']."]";
$packparc="[".$_POST['RadioGestparc']."]";
}
else
{
$parc="";
$packparc="";
}
if(isset($_POST['gestlitige']))
{
$litige="[".$_POST['gestlitige']."]";
$packlitige="[".$_POST['Radiogestlitige']."]";
}
else
{
$litige="";
$packlitige="";
}
if(isset($_POST['gestdamaged']))
{
$damaged="[".$_POST['gestdamaged']."]";
$packdamaged="[".$_POST['RadioGestdamaged']."]";
}
else
{
$damaged="";
$packdamaged="";
}
if(isset($_POST['gesttrack']))
{
$track="[".$_POST['gesttrack']."]";
$packtrack="[".$_POST['RadioGesttrack']."]";
}
else
{
$track="";
$packtrack="";
}
if(isset($_POST['gestcale']))
{
$cale="[".$_POST['gestcale']."]";
$packcale="[".$_POST['RadioGestcale']."]";
}
else
{
$cale="";
$packcale="";
}
if(isset($_POST['gestentrepôt']))
{
$entrepot="[".$_POST['gestentrepôt']."]";
$packentrepot="[".$_POST['RadioGestentrepot']."]";
}
else
{
$entrepot="";
$packentrepot="";
}
if(isset($_POST['gestarchives']))
{
$archives="[".$_POST['gestarchives']."]";
$packarchives="[".$_POST['RadioGestarchives']."]";
}
else
{
$archives="";
$packarchives="";
}
if(isset($_POST['gestraçabilité']))
{
$tracabilite="[".$_POST['gestraçabilité']."]";
$packtraca="[".$_POST['RadioGestracabilite']."]";
}
else
{
$tracabilite="";
$packtraca="";
}
if(isset($_POST['gestbayplans']))
{
$bayplans="[".$_POST['gestbayplans']."]";
$packplans="[".$_POST['RadioGestbayplans']."]";
}
else
{
$bayplans="";
$packplans="";
}
if(isset($_POST['gestetats']))
{
$etats="[".$_POST['gestetats']."]";
$packetats="[".$_POST['RadioGestetats']."]";
}
else
{
$etats="";
$packetats="";
}
if(isset($_POST['gestcompta']))
{
$compta="[".$_POST['gestcompta']."]";
$packcompta="[".$_POST['RadioGestcompta']."]";
}
else
{
$compta="";
$packcompta="";
}
$package=$packship.$packfact.$packposit.$packescale.$packmer.$packair.$packmanut.$packlitige.$packparc.$packetats.$packplans.$packtraca.$packarchives.$packentrepot.$packcale.$packtrack.$packdamaged.$packcompta;
$affiche=$ship.$fact.$posit.$escale.$mer.$air.$manut.$litige.$parc.$etats.$bayplans.$tracabilite.$archives.$entrepot.$cale.$track.$damaged.$compta;
if(isset($affiche)&&isset($enom)&&isset($enom)&&isset($_POST['nbre_employe']))
{
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO commande (nom, nbre_employe,logiciel,pack,pays,tel,message) VALUES (%s, %s,%s,%s, %s,%s,%s)",
GetSQLValueString($_POST['nom'], "text"),
GetSQLValueString($_POST['nbre_employe'], "int"),
GetSQLValueString($affiche, "text"),
GetSQLValueString($package, "text"),
GetSQLValueString($_POST['pays'], "text"),
GetSQLValueString($_POST['contact'], "int"),
GetSQLValueString($_POST['message'], "text"));
//mysql_select_db($database_mabase, $mabase);
mysql_select_db('ma_base',$dbconnect);
// $Result1 = mysql_query($insertSQL, $mabase) or die(mysql_error());
$Result1 = mysql_query($insertSQL, $dbconnect) or die(mysql_error());
}
vraiment besion de vous l'element a ajouter est "gestcompta" voici la page de comande du site
http://webtechm.net/index.php?pg=commande
Modifié par POLAMALU (09 Aug 2016 - 11:36)