Browse Source

Added published date.

pull/24/head
Teknikode 4 years ago
parent
commit
683be0e44b
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      blog/publish_post.php

+ 2
- 1
blog/publish_post.php View File

@@ -24,7 +24,8 @@ if(isset($_POST) && $logged_in)
if ($success)
{
$data = array(
"publish" => $publish
"publish" => $publish,
"date_published" => date("Y-m-d H:i:s",time())
);

$post_id = $db->update($data, 'blog', 'id=?', array($id));

Loading…
Cancel
Save