From 0b126ac277ed5480ef6090ddc7a23a15d21f2960 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 7 Dec 2006 08:48:00 +0100 Subject: tag editor --- functions.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 83f37b619..7b5da022c 100644 --- a/functions.php +++ b/functions.php @@ -3009,4 +3009,21 @@ } + function get_article_tags($link, $id) { + + $a_id = db_escape_string($id); + + $tmp_result = db_query($link, "SELECT DISTINCT tag_name FROM + ttrss_tags WHERE post_int_id = (SELECT int_id FROM ttrss_user_entries WHERE + ref_id = '$a_id' AND owner_uid = '".$_SESSION["uid"]."') ORDER BY tag_name"); + + $tags = array(); + + while ($tmp_line = db_fetch_assoc($tmp_result)) { + array_push($tags, $tmp_line["tag_name"]); + } + + return $tags; + } + ?> -- cgit v1.2.3-54-g00ecf