prepare("INSERT INTO posts (title, content, author, slug) VALUES (?, ?, ?, ?)"); $stmt->execute([$title, $content, $author, $slug]); $message = '
| # | Title | Author | Created At | Actions |
|---|---|---|---|---|
| " . htmlspecialchars($post['id']) . " | "; echo "" . htmlspecialchars($post['title']) . " | "; echo "" . htmlspecialchars($post['author']) . " | "; echo "" . date("F j, Y, g:i a", strtotime($post['created_at'])) . " | "; echo 'View Edit Delete | '; echo "
| No posts found. | ||||
| Error: ' . $e->getMessage() . ' | ||||