From fdd4fded45e99c7c704cc3fec5aedb183aafc856 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 15 Jul 2004 09:51:11 +0000 Subject: [PATCH] Quote SQL --- htdocs/facturefourn.class.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/facturefourn.class.php b/htdocs/facturefourn.class.php index 0af79e80002..1560c892da6 100644 --- a/htdocs/facturefourn.class.php +++ b/htdocs/facturefourn.class.php @@ -310,12 +310,12 @@ class FactureFourn $sql = "UPDATE ".MAIN_DB_PREFIX."facture_fourn_det "; $sql .= "SET description ='".$label."'"; - $sql .= ", pu_ht = " . $puht; - $sql .= ", qty =".$qty; - $sql .= ", total_ht=".$totalht; - $sql .= ", tva=".$tva; - $sql .= ", tva_taux=".$tauxtva; - $sql .= ", total_ttc=".$totalttc; + $sql .= ", pu_ht = '$puht'"; + $sql .= ", qty ='$qty'"; + $sql .= ", total_ht='$totalht'"; + $sql .= ", tva='$tva'"; + $sql .= ", tva_taux='$tauxtva'"; + $sql .= ", total_ttc='$totalttc'"; $sql .= " WHERE rowid = $id"; @@ -382,7 +382,7 @@ class FactureFourn } - $sql = "UPDATE ".MAIN_DB_PREFIX."facture_fourn SET total_ht = $total_ht, total_tva = $total_tva, total_ttc = $total_ttc"; + $sql = "UPDATE ".MAIN_DB_PREFIX."facture_fourn SET total_ht = '$total_ht', total_tva = '$total_tva', total_ttc = '$total_ttc'"; $sql .= " WHERE rowid = $facid ;"; $result = $this->db->query($sql);