From: Gabriel Dunne
Date: Wed, 21 Dec 2011 17:46:11 +0000 (-0800)
Subject: Implemented tagging in EDIT view
X-Git-Tag: v0.1~6
X-Git-Url: https://git.quilime.com/?a=commitdiff_plain;h=af9703e4297c72fa12d72386dff2b5d75bd91ffe;p=clmpr.git
Implemented tagging in EDIT view
---
diff --git a/edit.php b/edit.php
index de07ba2..122ae94 100644
--- a/edit.php
+++ b/edit.php
@@ -11,11 +11,11 @@ $dbh->beginTransaction();
try {
if ($params['id']) {
$user = get_user();
- $q = $dbh->prepare("SELECT *, clumps.id as clump_id
- FROM clumps
- JOIN users
- ON users.id = clumps.user_id
- WHERE clumps.id = ?
+ $q = $dbh->prepare("SELECT *, clumps.id as clump_id
+ FROM clumps
+ JOIN users
+ ON users.id = clumps.user_id
+ WHERE clumps.id = ?
ORDER BY date DESC
");
$q->execute( array( $params['id'] ));
@@ -29,14 +29,35 @@ catch(PDOException $e)
exit;
}
-?>
+?>
+
+
-
clmpr - =$clump['title']?>
-
+
+
+
+
+
+
-
-
+
@@ -65,10 +85,10 @@ function deleteClump( id ) {
-
+
-
-
+
+
@@ -77,8 +97,8 @@ function deleteClump( id ) {
- saved by
-
+ saved by
+
diff --git a/put.php b/put.php
index 6aae17e..080ef1b 100644
--- a/put.php
+++ b/put.php
@@ -17,10 +17,8 @@ try {
$dbh = get_db_connection();
$dbh->beginTransaction();
- # process tags
+ # filter tags
$tags = filter_tags($params['tags']);
- print_r($tags);
- exit;
#insert tags
if (count($tags) > 0) {