Fixed div error in index.php
[dylansserver.git] / index.php
index 687fc69..740157b 100644 (file)
--- a/index.php
+++ b/index.php
@@ -190,13 +190,13 @@ OTHER_PROJECTS;
   }
 
   protected function display_exhibits() {
+    echo "<div id='exhibit'>";
     $sql = "SELECT text FROM projects";
     $result = $this->db->query($sql);
     while ($entry = $result->fetch_object()) {
-      echo "<div class='exhibit'>";
       echo $entry->text;
-      echo "</div>";
     }
+    echo "</div>";
   }
 
   private function list_projects() {