From 2cd263e0bd8a36344e1dac5585b362b25ec19261 Mon Sep 17 00:00:00 2001 From: nicosomb Date: Sat, 20 Apr 2013 10:05:42 +0200 Subject: =?UTF-8?q?ajout=20d'url=20qui=20d=C3=A9connait?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/store/sqlite.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'inc/store/sqlite.class.php') diff --git a/inc/store/sqlite.class.php b/inc/store/sqlite.class.php index 51054bc5..b2ae94a7 100644 --- a/inc/store/sqlite.class.php +++ b/inc/store/sqlite.class.php @@ -94,10 +94,10 @@ class Sqlite extends Store { return $entries; } - public function add() { + public function add($url, $title, $content) { parent::__construct(); $sql_action = 'INSERT INTO entries ( url, title, content ) VALUES (?, ?, ?)'; - $params_action = array($url, $parametres_url['title'], $parametres_url['content']); + $params_action = array($url, $title, $content); $query = $this->executeQuery($sql_action, $params_action); } @@ -133,4 +133,4 @@ class Sqlite extends Store { $params_update = array($content, $id); $query = $this->executeQuery($sql_update, $params_update); } -} \ No newline at end of file +} -- cgit v1.2.3