Skip to content

Commit

Permalink
fixed a tiny error to do with ordering data
Browse files Browse the repository at this point in the history
  • Loading branch information
DoggersHusky committed Feb 3, 2016
1 parent 16e35ff commit 89f6c69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _notes/dwsync.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<dwsync>
<file name="test 1 - retrieving.html" server="doggershusky.com//" local="130979898554321457" remote="130979862000000000" Dst="1" />
<file name="test 1 - script.php" server="doggershusky.com//" local="130989354318274213" remote="130989318000000000" Dst="1" />
<file name="test 1 - script.php" server="doggershusky.com//" local="130989450810253990" remote="130989414600000000" Dst="1" />
<file name="test 2 - JQuery retrieving.html" server="doggershusky.com//" local="130981367384539309" remote="130981330800000000" Dst="1" />
<file name="test 2 - menu.php" server="doggershusky.com//" local="130981372444859783" remote="130981336200000000" Dst="1" />
<file name="test 3 - bootstrap.html" server="doggershusky.com//" local="130989299410000000" remote="130989262800000000" Dst="1" />
Expand Down
4 changes: 2 additions & 2 deletions test 1 - script.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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");
}
}

Expand Down

0 comments on commit 89f6c69

Please sign in to comment.