From af9703e4297c72fa12d72386dff2b5d75bd91ffe Mon Sep 17 00:00:00 2001 From: Gabriel Dunne Date: Wed, 21 Dec 2011 09:46:11 -0800 Subject: [PATCH] Implemented tagging in EDIT view --- edit.php | 50 +++++++++++++++++++++++++++++++++++--------------- put.php | 4 +--- 2 files changed, 36 insertions(+), 18 deletions(-) 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) { -- 2.34.1