From a597943b45af63221fec55e2c905fff5021d7c33 Mon Sep 17 00:00:00 2001 From: Patryk Hegenberg Date: Mon, 19 Dec 2022 20:55:48 +0100 Subject: [PATCH] Part on Escaping Chars finished --- controllers/note-create.php | 7 ++++++- views/note.view.php | 2 +- views/notes.view.php | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/controllers/note-create.php b/controllers/note-create.php index f869b9a..5fd31da 100644 --- a/controllers/note-create.php +++ b/controllers/note-create.php @@ -1,6 +1,11 @@ query("INSERT INTO notes (body, user_id) VALUES (:body, :user_id)", ['body' => $_POST['body'], 'user_id' => 1]); } require 'views/note-create.view.php'; \ No newline at end of file diff --git a/views/note.view.php b/views/note.view.php index 7837a47..f20d692 100644 --- a/views/note.view.php +++ b/views/note.view.php @@ -6,7 +6,7 @@

go back

-

+

\ No newline at end of file diff --git a/views/notes.view.php b/views/notes.view.php index 13ac33f..f32c21e 100644 --- a/views/notes.view.php +++ b/views/notes.view.php @@ -7,7 +7,7 @@
  • - +