Permalink
Browse files

added meta field to projects

  • Loading branch information...
askmike committed Mar 26, 2012
1 parent 21eb522 commit 5499d89c310b4f3ae5e909099675a8567ce7d39f
Showing with 7 additions and 2 deletions.
  1. +7 −2 core/models/projectModel.php
@@ -20,7 +20,7 @@ public function getProject($url) {
# Voer het SQL statement uit
$statement->execute();
- $statement->bind_result($id, $date, $titel, $bodyMd, $bodyHtml, $excerpt, $modifyDate, $url);
+ $statement->bind_result($id, $date, $titel, $bodyMd, $bodyHtml, $excerpt, $modifyDate, $url, $meta);
while ($statement->fetch()) {
$array = array(
@@ -31,12 +31,17 @@ public function getProject($url) {
'meta' => $meta,
'date' => $date,
'url' => $url,
- 'excerpt' => $excerpt
+ 'excerpt' => $excerpt,
+ 'meta' => $meta
);
}
return $array;
}
+
+ public function getUrls($number) {
+ return $this->query('SELECT url FROM project LIMIT ' . $number);
+ }
}
?>

0 comments on commit 5499d89

Please sign in to comment.