"; }else{ echo ""; } include("connexion.php"); if(isset($_POST['banc']) && isset($_POST['ip']) && isset($_POST['name']) && isset($_POST['type'])){ $banc = $_POST['banc']; $ip = $_POST['ip']; $name = $_POST['name']; $type = $_POST['type']; echo "banc = ".$banc." // ip = ".$ip." // name = ".$name."// type = ".$type."
"; $requete = "INSERT INTO equipement VALUES($banc,'$ip','$name','$type')"; $exec_requete = mysqli_query($db,$requete); echo ""; }else{ //echo "L'ajout n'a pas fonctionné"; echo ""; } mysqli_close($db); ?>