'; $topics_html .= '#' . $row['tag'] . ''; $topics_html .= ''; $author = exec_stmt('SELECT user_id, username, profile_picture FROM user WHERE user_id = ?', 'i', $essay['author_id'])->fetch_assoc(); $html = '

' . $essay['title'] . '

Written by: ' . $author['username'] . ' Published: ' . $essay['published_at'] . ' Updated: ' . $essay['updated_at'] . '

' . $essay['excerpt'] . '

Read More
' . $topics_html . '
'; return $html; }