summaryrefslogtreecommitdiff
path: root/includes/functions_insert.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/functions_insert.php')
-rw-r--r--includes/functions_insert.php4
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
+}