diff --git a/db/poche.sqlite b/db/poche.sqlite index 6847e9570..2aee61f4b 100755 Binary files a/db/poche.sqlite and b/db/poche.sqlite differ diff --git a/index.php b/index.php index 27144de30..7ae2fb6fe 100755 --- a/index.php +++ b/index.php @@ -44,8 +44,17 @@ switch ($action) } } - $query = $db->getHandle()->prepare('INSERT INTO entries ( url, title ) VALUES (?, ?)'); - $query->execute(array($url, $title)); + try + { + # insert query + $query = $db->getHandle()->prepare('INSERT INTO entries ( url, title, content ) VALUES (?, ?, ?)'); + $query->execute(array($url, $title, $r->articleContent->innerHTML)); + } + catch (Exception $e) + { + error_log('insert query error : '.$e->getMessage()); + } + break; case 'delete': $sql_action = "DELETE FROM entries WHERE id=?"; @@ -66,7 +75,7 @@ try } catch (Exception $e) { - die('query error : '.$e->getMessage()); + die('action query error : '.$e->getMessage()); } switch ($view) @@ -95,7 +104,7 @@ try } catch (Exception $e) { - die('query error : '.$e->getMessage()); + die('view query error : '.$e->getMessage()); } ?> @@ -136,7 +145,7 @@ catch (Exception $e)