pouet mise a jour pouet

This commit is contained in:
2019-03-05 14:20:14 +01:00
parent 0ebf00dd4c
commit bd886e444e
15 changed files with 259 additions and 123 deletions

View File

@ -261,7 +261,6 @@ class Post {
$p = Post::list(true, 1)[0]->getId();
$tags = $post->getTags();
var_dump($tags);
if(count($tags) >= 1) {
$q = "INSERT INTO post_tag (post_id, tag) VALUES ( :post , :tag )";
$prepared = $pdo->prepare($q);
@ -320,6 +319,7 @@ class Post {
$prepared->bindValue(":dt", $dt);
$prepared->bindValue(":id", $id);
$prepared->execute();
var_dump($prepared->errorInfo());
$tags = $post->getTags();
if(count($tags) >= 1) {