Gestion des , dans les prix

This commit is contained in:
Rodolphe Quiedeville 2003-07-21 13:53:46 +00:00
parent 35ff3fbe5f
commit 65069481e8

View File

@ -398,8 +398,8 @@ class Livre {
$sql = "UPDATE ".DB_NAME_OSC.".products ";
$sql .= "SET products_model = '".$this->ref."'";
$sql .= ", products_image = '".$this->image."'";
$sql .= ", products_price = ".$this->price."";
$sql .= ", products_weight = ".$this->price."";
$sql .= ", products_price = ".ereg_replace(",",".",$this->price)."";
$sql .= ", products_weight = ".ereg_replace(",",".",$this->price)."";
$sql .= " WHERE products_id = " . $this->oscid;
@ -466,7 +466,7 @@ class Livre {
$sql = "UPDATE llx_livre ";
$sql .= " SET title = '" . trim($this->titre) ."'";
$sql .= ", ref = '" . trim($this->ref) ."'";
$sql .= ", prix = " . $this->price ."";
$sql .= ", prix = " . ereg_replace(",",".",$this->price)."";
$sql .= ", annee = " . $this->annee ;
$sql .= ", fk_editeur = " . $this->editeurid ;
$sql .= ", description = '" . trim($this->description) ."'";