fetch_assoc(); $author = exec_stmt('SELECT user_id, username, profile_picture FROM user WHERE user_id = ?', 'i', $article['author_id'])->fetch_assoc(); $markdown = read_file_one_string($_ENV['ARTICLES_FQ_PATH'] . $article_id . '/article.md'); $following = exec_stmt('SELECT follower_user_id, following_user_id FROM follows WHERE follower_user_id = ? AND following_user_id = ?', 'ii', $_SESSION['user_id'], $author['user_id'])->fetch_assoc(); $parsedown = new Parsedown(); $parsedown->setSafeMode(true); $article_content = $parsedown->text($markdown); $html = '
Published on ' . $article['published_at'] . '
Lasted edited on ' . $article['updated_at'] . '