TheMathWizard/controllers/notes.php
2022-12-16 10:37:54 +01:00

11 lines
No EOL
325 B
PHP

<?php
$username = 'appUser';
$password = 'password';
$config = require('config.php');
$db = new Database($config['database'], $username, $password);
$heading = "My Notes";
$notes = $db->query('select * from notes where user_id = 1')->fetchAll();
//dd($notes);
require "views/notes.view.php";