From aff596a7db480228e98efc1457644ba7d3379ae3 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 1 Sep 2003 13:20:45 +0000 Subject: [PATCH] Ajout fonction update_image --- htdocs/boutique/livre/livre.class.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/htdocs/boutique/livre/livre.class.php b/htdocs/boutique/livre/livre.class.php index 0da0956496f..b76560c4966 100644 --- a/htdocs/boutique/livre/livre.class.php +++ b/htdocs/boutique/livre/livre.class.php @@ -533,7 +533,21 @@ class Livre { return $result; } - + /* + * + * + */ + Function update_image($file_name) + { + $sql = "UPDATE ".DB_NAME_OSC.".products SET products_image='".$file_name."'"; + $sql .= " WHERE products_id = " . $this->oscid; + + $result = $this->db->query($sql) ; + + if ( $result ) + { + } + } /* *