<!--body--> <div id="main"> <?php // include '../view/news.php'; ?> <div id="heart"> <?php if (isset($_SESSION['userlogin']) && @$_SESSION['userlogin']) { include_once $_SERVER['DOCUMENT_ROOT'] . '/phptest/new_mvc/model/tasks.php'; $tasks = new tasks(); @($task_id = $_GET['task']); if (isset($task_id)) { echo "shit"; try { $sql = $tasks->view_task($task_id); while ($rows_task = mysqli_fetch_array($sql)) { $task_userid = $rows_task['user_id']; $task_name = $rows_task['name']; $task_body = $rows_task['body']; $task_from = $rows_task['from']; $task_from_time = $rows_task['from_time']; $task_to = $rows_task['to']; $task_to_time = $rows_task['to_time']; $task_category_id = $rows_task['category_id']; } if (isset($_SESSION['userid']) && @$_SESSION['userid'] == $task_userid) { include_once 'tasks.php'; } else { die("Premission Denied"); }