diff options
author | cflip <36554078+cflip@users.noreply.github.com> | 2021-04-14 17:23:56 -0600 |
---|---|---|
committer | cflip <36554078+cflip@users.noreply.github.com> | 2021-04-14 17:23:56 -0600 |
commit | 5c0314a75d2722bb99918ef44473f4204462835a (patch) | |
tree | 7f930fd12305baad4e8944ed95f0136e749d3741 /includes/functions_insert.php | |
parent | 424622fbdbe7065cb5b93b39d6cfc5ba0a31775e (diff) |
Add 'date edited' attribute to posts
Diffstat (limited to 'includes/functions_insert.php')
-rw-r--r-- | includes/functions_insert.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/functions_insert.php b/includes/functions_insert.php index e13b80e..4f60701 100644 --- a/includes/functions_insert.php +++ b/includes/functions_insert.php @@ -16,7 +16,7 @@ function insert_thread($dbc, $thread_subject, $thread_cat, $thread_author) { } function insert_post($dbc, $post_content, $post_thread, $post_author, $post_category) { - $sql = "INSERT INTO posts(post_content, post_date, post_thread, post_author) VALUES (?, CONVERT_TZ(NOW(), 'SYSTEM', '+00:00'), ?, ?);"; + $sql = "INSERT INTO posts(post_content, post_date_created, post_thread, post_author) VALUES (?, CONVERT_TZ(NOW(), 'SYSTEM', '+00:00'), ?, ?);"; $stmt = mysqli_stmt_init($dbc); if (!mysqli_stmt_prepare($stmt, $sql)) { @@ -32,4 +32,4 @@ function insert_post($dbc, $post_content, $post_thread, $post_author, $post_cate $sql = "UPDATE threads SET thread_date_lastpost = CONVERT_TZ(NOW(), 'SYSTEM', '+00:00') WHERE thread_id = " . $post_thread . ";"; mysqli_query($dbc, $sql); -}
\ No newline at end of file +} |