From 35a9c03d05b7fe2cba2e0b33e6b47b8b5bf11fef Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 26 May 2003 14:54:34 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=E0=20jour=20proc=E9dure=20de=20suppress?= =?UTF-8?q?ion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/boutique/livre/livre.class.php | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/htdocs/boutique/livre/livre.class.php b/htdocs/boutique/livre/livre.class.php index a47d3fdcfb1..6374c1a5a57 100644 --- a/htdocs/boutique/livre/livre.class.php +++ b/htdocs/boutique/livre/livre.class.php @@ -555,17 +555,16 @@ class Livre { * * */ - Function delete($user) { - - $sql = "DELETE FROM ".DB_NAME_OSC.".products WHERE products_id = $idosc "; - - $sql = "DELETE FROM ".DB_NAME_OSC.".products_to_categories WHERE products_id = $idosc"; - - $sql = "DELETE FROM ".DB_NAME_OSC.".products_description WHERE products_id = $idosc"; - - $sql = "DELETE FROM llx_livre WHERE rowid = $id"; - - + Function delete() + { + $sql = "DELETE FROM ".DB_NAME_OSC.".products WHERE products_id = ".$this->oscid; + $result = $this->db->query($sql) ; + $sql = "DELETE FROM ".DB_NAME_OSC.".products_to_categories WHERE products_id = ".$this->oscid; + $result = $this->db->query($sql) ; + $sql = "DELETE FROM ".DB_NAME_OSC.".products_description WHERE products_id = ".$this->oscid; + $result = $this->db->query($sql) ; + $sql = "DELETE FROM llx_livre WHERE rowid = ".$this->id; + $result = $this->db->query($sql) ; }