-
Notifications
You must be signed in to change notification settings - Fork 3
/
article_new.php
executable file
·44 lines (44 loc) · 1.81 KB
/
article_new.php
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
41
42
43
44
<?php
/*
* Factux le facturier libre
* Copyright (C) 2003-2005 Guy Hendrickx, 2017 Thomas Ingles
*
* Licensed under the terms of the GNU General Public License:
* http://opensource.org/licenses/GPL-3.0
*
* For further information visit:
* http://factux.free.fr
*
* File Name: article_new.php
* Enregistrement des nouveaux articles
*
* * Version: 5.0.0
* * * * Modified: 07/10/2016
*
* File Authors:
* Guy Hendrickx
*.
*/
require_once("include/verif.php");
include_once("include/config/common.php");
include_once("include/config/var.php");
include_once("include/language/$lang.php");
$article=isset($_POST['article'])?apostrophe($_POST['article']):"";### ‘ ‘ ‘ Left single quotation mark ::: 4 change Single quote (') http://ascii-code.com/
$uni=isset($_POST['uni'])?$_POST['uni']:"";
$prix=isset($_POST['prix'])?$_POST['prix']:"";
$taux_tva=isset($_POST['taux_tva'])?$_POST['taux_tva']:"";
$commentaire=isset($_POST['commentaire'])?apostrophe($_POST['commentaire']):"";###
$stock=isset($_POST['stock'])?$_POST['stock']:"";
$stomin=isset($_POST['stomin'])?$_POST['stomin']:"";
$stomax=isset($_POST['stomax'])?$_POST['stomax']:"";
$categorie=isset($_POST['categorie'])?$_POST['categorie']:"";
$marge=isset($_POST['marge'])?$_POST['marge']:"";
if($article=='' || $prix==''|| $taux_tva=='' || $uni=='' ){
$message = "<h1>$lang_oubli_champ</h1>";
include('form_article.php');
exit;
}
$sql1 = "INSERT INTO " . $tblpref ."article(article, prix_htva, taux_tva, commentaire, uni, stock, stomin, stomax, cat, marge) VALUES ('$article', '$prix', '$taux_tva', '$commentaire', '$uni', '$stock', '$stomin', '$stomax', '$categorie', '$marge')";
mysql_query($sql1) or die('Erreur SQL !<br>'.$sql1.'<br>'.mysql_error());
$message = "<h2>$lang_nouv_art<br>$lang_commentaire $commentaire</h2>";
include("form_article.php");