From f6abad7df0bb148378e7fa87e3d4021b8de0bbdd Mon Sep 17 00:00:00 2001
From: aryapradipta9 <aryapradipta9@gmail.com>
Date: Wed, 9 May 2018 16:51:59 +0700
Subject: [PATCH] change order

---
 getAllMateri.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/getAllMateri.php b/getAllMateri.php
index 664fb5a..af10951 100755
--- a/getAllMateri.php
+++ b/getAllMateri.php
@@ -12,7 +12,7 @@
 
 require 'dbConnect.php';
 
-$stmt = $conn->query("SELECT * FROM `materi`");
+$stmt = $conn->query("SELECT * FROM `materi` ORDER BY `id` DESC");
 $count = $stmt->num_rows;
 $res = array();
 while ($row = $stmt->fetch_assoc()) {
-- 
GitLab