Zaktualizuj 'index.php'

This commit is contained in:
Kamil Paprota 2018-12-17 19:46:42 +00:00
parent 10f12bc69a
commit 2ed833e4eb

View File

@ -41,7 +41,7 @@ include "settings/db_connect.php";?>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<?php $trash = ''; <?php $trash = '';
if ($sql = $mysqli->prepare("SELECT * FROM post ORDER BY data_dodania")) if ($sql = $mysqli->prepare("SELECT * FROM post 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);