$v) { $lesCol[] = $k; } $requeteSQL = "UPDATE accountinfo SET "; $indexType=0; foreach ($_POST as $kp => $vp) { if(!in_array($kp,$lesCol)) continue; $indexType++; if(mysql_field_type($resultAcc,$indexType)=="date") { if($vp) $vp = dateToMysql($vp); } $requeteSQL.="$kp='$vp',"; } $requeteSQL = substr($requeteSQL,0,strlen($requeteSQL)-1); $requeteSQL.=" WHERE hardware_id=$systemid"; // Exécution de la requête SQL if( lock($systemid) ) { $resultat = mysql_query( $requeteSQL, $_SESSION["writeServer"] ); unlock($systemid); } else errlock(); return; } if ($action_form == 'modifier') { $systemid = $_POST["systemid"]; MAJ_Inventory($systemid); echo "\n"; } echo "
".$l->g(56)." | "; echo "