TheMathWizard/controllers/notes/index.php
2022-12-20 21:35:05 +01:00

11 lines
No EOL
326 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')->get();
//dd($notes);
require "views/notes/index.view.php";