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($submit){
$connect = mysql_connect("localhost","root","root");
mysql_select_db("Produits", $connect);
$sql="INSERT INTO film (id, ,EAN, Gamme, Famille, Produit, PAUHT, PAUTTC, Colisage, PVHT, PVTTC, TVA, RemiseClt%, RemiseClt, QtéStock, Alerte, Commentaire )";
$sql.=" VALUES ('', '$EAN', '$Gamme', '$Famille', '$Produit', '$PAUHT', '$PAUTTC', '$Colisage', '$PVHT', '$PVTTC', '$TVA', '$RemiseClt', '$RemiseClt', '$QtéStock', '$Alerte', '$Commentaaire')";
mysql_query("$sql", $connect);
// fermeture de la connection
mysql_close($connect);
echo"insertion réussie";
}
?>
<html>
<Body>
<br>
<br>
<form method="POST" action='insert.php'>
CodeEAN : <input type="text" name="EAN" size="13" maxLength="13">
// <input type="submit" value="Entrée"><br><br>
Gamme: <input type="text" name="Gamme" size="15">
Famille: <input type="text" name="Famille" size="15">
Produit: <input type="text" name="Produit" size="15"><br><br>
Prix achat unitaire HT: <input type="text" name="PAUHT" size="15">
Prix achat unitaire TTC: <input type="text" name="PAUTTC" size="15">
Colisage: <input type="text" name="Colisage" size="15">
Prix vente HT: <input type="text" name="PVHT" size="15">
Prix vente TTC: <input type="text" name="PVTTC" size="15"><br><br>
</select><br><br>
TVA: <input type="text" name="TVA" size="15">
Remise Client %: <input type="text" name="RemiseClt" size="15">
Remise Client : <input type="text" name="RemiseClt" size="15">
Quantite : <input type="text" name="Quantite" size="4"><br><br>
Alerte: <input type="text" name="Alerte" size="15">
Commentaire: <input type="text" name="Commentaire" size="15">
<br>
<input type="submit" name="submit" value="Ajouter Produit">
</form>
</body>
</html> |
Partager