rss layout now fully separated m/v/c
[dylansserver.git] / model / project.php
1 <?php
2
3 require_once("model/index.php");
4
5 class project extends index {
6
7 public function display_exhibits() {
8 echo "<div id='exhibit'>";
9 $sql = "SELECT text FROM projects
10 WHERE title = ?";
11 $result = $this->query($sql, "s", $_GET['project']);
12 if ($result = $result[0]['text']) {
13 $text = str_replace("class='exhibit'", "class='exhibit' style='display:block;'", $result);
14 echo $text;
15 echo "</div>";
16 } else {
17 throw new notFound();
18 }
19 }
20
21 }
22
23 ?>