Commit ea06cec2 authored by Corentin Bettiol's avatar Corentin Bettiol 💻

oops x2

parent 0ca12171
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00"; SET time_zone = "+00:00";
USE l3m;
CREATE TABLE `l3m_blog` ( CREATE TABLE `l3m_blog` (
`id` int(11) NOT NULL, `id` int(11) NOT NULL,
`time` datetime NOT NULL, `time` datetime NOT NULL,
......
...@@ -73,7 +73,7 @@ class BlogManager extends Base ...@@ -73,7 +73,7 @@ class BlogManager extends Base
$this->slug = $this->slugify($this->title); $this->slug = $this->slugify($this->title);
$db = $this->dbConnect(); $db = $this->dbConnect();
$req = $db->prepare('INSERT INTO l3m_blog(time, title, slug, content, shortcontent) VALUES(:time, :title, :slug, :content, :shortContent)'); $req = $db->prepare('INSERT INTO l3m_blog(time, title, slug, content, shortContent) VALUES(:time, :title, :slug, :content, :shortContent)');
$req->execute([ $req->execute([
'time' => $this->time, 'time' => $this->time,
'title' => $this->title, 'title' => $this->title,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment