diff --git a/getAllMateri.php b/getAllMateri.php index 664fb5a5f1112f1750c27472c2d4bf530ab22d1a..af10951d861b0ca8d1aeddaeaebb4d094e8af620 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()) {