Zaktualizuj 'blog-post/blog.php'

This commit is contained in:
Kamil Paprota 2018-12-17 19:46:24 +00:00
parent 90acc379db
commit 10f12bc69a

View File

@ -116,7 +116,7 @@ else die( "Błąd w zapytaniu SQL! Sprawdź kod SQL w PhpMyAdmin." );
$trash = '';
if ($sql = $mysqli->prepare("SELECT * FROM post WHERE blog_id=$user_id ORDER BY data_dodania"))
if ($sql = $mysqli->prepare("SELECT * FROM post WHERE blog_id=$user_id ORDER BY data_dodania DESC"))
{
$sql->execute();
$sql->bind_result($post_id,$trash,$title,$description,$main,$image,$date,$mod_date);