From: Dylan Lloyd Date: Tue, 21 Feb 2012 21:45:53 +0000 (-0500) Subject: added ORDER BY rank to projects sql X-Git-Url: https://disinclined.org/git/?a=commitdiff_plain;h=61419ce10ec920aae29537f9bc0f8295d94baddf;p=dylansserver.git added ORDER BY rank to projects sql --- diff --git a/index.php b/index.php index b95b16d..8cb1d62 100644 --- a/index.php +++ b/index.php @@ -194,7 +194,7 @@ OTHER_PROJECTS; protected function display_exhibits() { echo "
"; - $sql = "SELECT text FROM projects"; + $sql = "SELECT text FROM projects ORDER BY rank"; $result = $this->db->query($sql); while ($entry = $result->fetch_object()) { echo $entry->text; @@ -208,7 +208,7 @@ OTHER_PROJECTS;

my projects:

HEREDOC; - $sql = "SELECT title FROM projects"; + $sql = "SELECT title FROM projects ORDER BY rank"; $result = $this->db->query($sql); while ($entry = $result->fetch_object()) { echo "
  • $entry->title
  • ";