From 2805ef7311eeb028cd48bffe04a705676c4682be Mon Sep 17 00:00:00 2001 From: cflip <36554078+cflip@users.noreply.github.com> Date: Sun, 21 Mar 2021 10:54:47 -0600 Subject: big changes pt1 --- includes/.htaccess | 0 includes/db_inc.php | 2 +- includes/functions_display.php | 14 +++----------- 3 files changed, 4 insertions(+), 12 deletions(-) create mode 100644 includes/.htaccess (limited to 'includes') diff --git a/includes/.htaccess b/includes/.htaccess new file mode 100644 index 0000000..e69de29 diff --git a/includes/db_inc.php b/includes/db_inc.php index 2d157af..7d743fc 100644 --- a/includes/db_inc.php +++ b/includes/db_inc.php @@ -2,7 +2,7 @@ $db_server = 'localhost'; $db_user = 'root'; -$db_pass = ''; +$db_pass = 'admin'; $db_database = 'forum2'; $dbc = mysqli_connect($db_server, $db_user, $db_pass, $db_database); diff --git a/includes/functions_display.php b/includes/functions_display.php index 479648f..bf9ed64 100644 --- a/includes/functions_display.php +++ b/includes/functions_display.php @@ -86,14 +86,9 @@ function add_quote($dbc, $thread_id, $matches) { } } -function display_posts($dbc, $sql_result) { - echo '
' . $post_index . ' | |
---|---|
Posted by ' . $row['user_name'] . ' ' . date('m/d/Y g:ia', strtotime($row['post_date'])) . ' | ';
+ echo '#' . $row['post_id'] . ' Posted by ' . $row['user_name'] . ' on ' . date('m/d/Y g:ia', strtotime($row['post_date'])) . '' . $post_content . ' |