From 89f6c698b3e0186d38e673051fc0a688890ce13f Mon Sep 17 00:00:00 2001 From: DoggersHusky Date: Tue, 2 Feb 2016 23:54:22 -0400 Subject: [PATCH] fixed a tiny error to do with ordering data --- _notes/dwsync.xml | 2 +- test 1 - script.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_notes/dwsync.xml b/_notes/dwsync.xml index 43b3c1f..7bedfbe 100644 --- a/_notes/dwsync.xml +++ b/_notes/dwsync.xml @@ -1,7 +1,7 @@ - + diff --git a/test 1 - script.php b/test 1 - script.php index c110740..b91c578 100644 --- a/test 1 - script.php +++ b/test 1 - script.php @@ -12,7 +12,7 @@ if (isset($_GET['page']) and $page == "index"){ //this is the index page will be used to show recent examples - echo $conn->content("SELECT * FROM information WHERE display<>1 ORDER BY ID DESC LIMIT 1, 3"); + echo $conn->content("SELECT * FROM information WHERE display<>1 ORDER BY ID DESC"); }else{ if (isset($_GET['id'])) { //query the database and pull the results @@ -21,7 +21,7 @@ }else{ //query the database and pull the results //select everything from the information table - echo $conn->content("SELECT * FROM information WHERE page='$page'"); + echo $conn->content("SELECT * FROM information WHERE page='$page' ORDER BY ID DESC"); } }