Hello. I’m trying to set up tagging. I tried your setup exactly, but have been unable to get it to work.
The only change I made was in defining the site URL. My site doesn’t use friendly URLS

so the line in your snipped is changed to:
$result .= ’<a href="
http://www.myurl.com/index.php?id=17?tags=’.$tag.’" rel="tag">’.$category.’</a>’;
Where id=17 is a page with:
[!Ditto? &startID=`5` &tagData=`tvcategory` &tagDelimiter=`,` &summarize=`100` &truncSplit=`false` &sortby=`pagetitle` &sortdir=`asc` !]
When I call the snippet, the tags and their associated links are output perfectly. I.e.:
<a href="
http://www.myurl.com/index.php?id=17?tags=test" rel="tag">test</a>, <a href="
http://www.myurl.com/index.php?id=17?tags=blog" rel="tag">blog</a>
However, clicking on the links produces a 404 error. The document with id=17 certainly exists, so I’m just wondering if the problem is the fact that there are 2 items in the query string, ’id’ and ’tags’.
Any help would be greatly appreciated.