Zaktualizuj 'blog-post/blog.php'
This commit is contained in:
parent
90acc379db
commit
10f12bc69a
@ -116,7 +116,7 @@ else die( "Błąd w zapytaniu SQL! Sprawdź kod SQL w PhpMyAdmin." );
|
|||||||
|
|
||||||
|
|
||||||
$trash = '';
|
$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->execute();
|
||||||
$sql->bind_result($post_id,$trash,$title,$description,$main,$image,$date,$mod_date);
|
$sql->bind_result($post_id,$trash,$title,$description,$main,$image,$date,$mod_date);
|
||||||
|
Loading…
Reference in New Issue
Block a user