added delete function to th application

This commit is contained in:
Patryk Hegenberg 2023-01-08 20:24:13 +01:00
parent 204e212fb8
commit a19e40f205
7 changed files with 74 additions and 10 deletions

View file

@ -1,8 +1,14 @@
<?php
$heading = "profile";
$username = "MatheApp";
$password = "password";
$config = require('config.php');
$db = new Database($config['database'], $username, $password);
session_start();
if(!isset($_SESSION["username"])){
header("Location: /");
exit;
}
require "views/profile.view.php";