Browse Source

Added published date.

pull/24/head
Teknikode 7 years ago
parent
commit
683be0e44b
  1. 3
      blog/publish_post.php

3
blog/publish_post.php

@ -24,7 +24,8 @@ if(isset($_POST) && $logged_in) @@ -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