From 147eadd2c2bb6c8c2c9e238a82296c8a840c4aa8 Mon Sep 17 00:00:00 2001 From: Cflip <36554078+cflip@users.noreply.github.com> Date: Sun, 24 Jan 2021 14:14:05 -0700 Subject: Create function to display threads --- includes/functions_inc.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 includes/functions_inc.php (limited to 'includes') diff --git a/includes/functions_inc.php b/includes/functions_inc.php new file mode 100644 index 0000000..c10b65b --- /dev/null +++ b/includes/functions_inc.php @@ -0,0 +1,30 @@ +'; + echo '

' . $row['thread_subject'] . '

'; + echo 'by ' . $row['user_name'] . ' '; + if ($show_category) { + echo 'in ' . $row['cat_name'] . ' '; + } + echo 'on ' . date('M d, Y', strtotime($row['thread_date'])) . ''; + echo 'by ' . $thread['user_name'] . '
'; + echo '' . date('m/d/Y g:ia', strtotime($thread['post_date'])) . ''; + } + + mysqli_stmt_close($stmt); +} \ No newline at end of file -- cgit v1.2.3