disinclined.org
/
git
/
dylansserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
27d3934
)
added ORDER BY rank to projects sql
author
Dylan Lloyd
<dylan@dylansserver.com>
Tue, 21 Feb 2012 21:45:53 +0000
(16:45 -0500)
committer
Dylan Lloyd
<dylan@dylansserver.com>
Tue, 21 Feb 2012 21:45:53 +0000
(16:45 -0500)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index
b95b16d
..
8cb1d62
100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-194,7
+194,7
@@
OTHER_PROJECTS;
protected function display_exhibits() {
echo "<div id='exhibit'>";
protected function display_exhibits() {
echo "<div id='exhibit'>";
- $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;
$result = $this->db->query($sql);
while ($entry = $result->fetch_object()) {
echo $entry->text;
@@
-208,7
+208,7
@@
OTHER_PROJECTS;
<h3>my projects:</h3>
</li>
HEREDOC;
<h3>my projects:</h3>
</li>
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 "<li><a class='tab' href='$entry->title'>$entry->title</a></li>";
$result = $this->db->query($sql);
while ($entry = $result->fetch_object()) {
echo "<li><a class='tab' href='$entry->title'>$entry->title</a></li>";