diff options
author | Andrew Dolgov <[email protected]> | 2006-12-07 08:48:00 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-12-07 08:48:00 +0100 |
commit | 0b126ac277ed5480ef6090ddc7a23a15d21f2960 (patch) | |
tree | f8cb200f57f056da4ace2a754931e585f9103d7f /functions.php | |
parent | faf40998b3c1c075e30020031db001fbc89276cc (diff) |
tag editor
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 17 |
1 files changed, 17 insertions, 0 deletions
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; + } + ?> |