<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Simple Tagging With PHP &amp; MySQL</title>
	<atom:link href="http://www.brainhandles.com/techno-thoughts/simple-tagging-with-php-mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.brainhandles.com/techno-thoughts/simple-tagging-with-php-mysql</link>
	<description>Whatever&#039;s tugging at my brain handles</description>
	<lastBuildDate>Tue, 27 Dec 2011 19:46:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Roberto</title>
		<link>http://www.brainhandles.com/techno-thoughts/simple-tagging-with-php-mysql/comment-page-1#comment-8751</link>
		<dc:creator>Roberto</dc:creator>
		<pubDate>Fri, 03 Jul 2009 14:44:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainhandles.com/2007/04/26/simple-tagging-with-php-mysql/#comment-8751</guid>
		<description>Hello,

Thanks for the article, it is a quite simple script for what I&#039;m trying to add into my recipes catalog.

One thing I noticed though, is that while you clean up the tag suggestion before including in the SQL statement, you completly missed the XSS cleanup to do before using the tag suggested in the HTML output.

Acording to php.net, there&#039;s simple function to do this strip_tags:
www.php.net/manual/en/function.strip-tags.php

Hope it helps avoid any misuse of other sites!

Rob
</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Thanks for the article, it is a quite simple script for what I'm trying to add into my recipes catalog.</p>
<p>One thing I noticed though, is that while you clean up the tag suggestion before including in the SQL statement, you completly missed the XSS cleanup to do before using the tag suggested in the HTML output.</p>
<p>Acording to php.net, there's simple function to do this strip_tags:<br />
<a href="http://www.php.net/manual/en/function.strip-tags.php" rel="nofollow">http://www.php.net/manual/en/function.strip-tags.php</a></p>
<p>Hope it helps avoid any misuse of other sites!</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nils</title>
		<link>http://www.brainhandles.com/techno-thoughts/simple-tagging-with-php-mysql/comment-page-1#comment-7687</link>
		<dc:creator>nils</dc:creator>
		<pubDate>Tue, 06 Jan 2009 17:11:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainhandles.com/2007/04/26/simple-tagging-with-php-mysql/#comment-7687</guid>
		<description>Very good introduction. Was a great help. Thank you.</description>
		<content:encoded><![CDATA[<p>Very good introduction. Was a great help. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jsuthan</title>
		<link>http://www.brainhandles.com/techno-thoughts/simple-tagging-with-php-mysql/comment-page-1#comment-7133</link>
		<dc:creator>jsuthan</dc:creator>
		<pubDate>Sun, 07 Sep 2008 12:30:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainhandles.com/2007/04/26/simple-tagging-with-php-mysql/#comment-7133</guid>
		<description>Thank you, this really helps me understand how tagging works. I never used tagging before but now I understand much better. I am trying to beat Google search engine soon :).</description>
		<content:encoded><![CDATA[<p>Thank you, this really helps me understand how tagging works. I never used tagging before but now I understand much better. I am trying to beat Google search engine soon <img src='http://www.brainhandles.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reggebah</title>
		<link>http://www.brainhandles.com/techno-thoughts/simple-tagging-with-php-mysql/comment-page-1#comment-6953</link>
		<dc:creator>Reggebah</dc:creator>
		<pubDate>Wed, 23 Jul 2008 20:02:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainhandles.com/2007/04/26/simple-tagging-with-php-mysql/#comment-6953</guid>
		<description>Greg,
Thanks for this! I was able to implement this very quickly on my home made blog.
Nice work.</description>
		<content:encoded><![CDATA[<p>Greg,<br />
Thanks for this! I was able to implement this very quickly on my home made blog.<br />
Nice work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Bulmash</title>
		<link>http://www.brainhandles.com/techno-thoughts/simple-tagging-with-php-mysql/comment-page-1#comment-6814</link>
		<dc:creator>Greg Bulmash</dc:creator>
		<pubDate>Wed, 14 May 2008 02:36:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainhandles.com/2007/04/26/simple-tagging-with-php-mysql/#comment-6814</guid>
		<description>@Lester,

If you know item ID from the video table and you have a tag, then you need to query the tag table to see if the tag exists.  If the tag exists, retrieve the ID, and then you&#039;ll have the data to do the insert on the video_tags table.  If the tag doesn&#039;t exist, insert it, then retrieve the tag&#039;s id, and do your insert on video_tags.</description>
		<content:encoded><![CDATA[<p>@Lester,</p>
<p>If you know item ID from the video table and you have a tag, then you need to query the tag table to see if the tag exists.  If the tag exists, retrieve the ID, and then you'll have the data to do the insert on the video_tags table.  If the tag doesn't exist, insert it, then retrieve the tag's id, and do your insert on video_tags.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lester</title>
		<link>http://www.brainhandles.com/techno-thoughts/simple-tagging-with-php-mysql/comment-page-1#comment-6813</link>
		<dc:creator>Lester</dc:creator>
		<pubDate>Wed, 14 May 2008 01:23:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainhandles.com/2007/04/26/simple-tagging-with-php-mysql/#comment-6813</guid>
		<description>I have looked through your tag and i&#039;m able to get the tag work but not with the inserting of ID into the tag table.

My doing a video site which require tagging for each video. i have created 3 tables, one is the video, second is the tag and the third is the video tag table as my table video is many to many to tag table. 

The problem is i can&#039;t fetch the ID from both the video and tag table into my video_tag table as i have foriegn key to these two tables.

Do you know the mysql insert statement which allows me to add the ID from the video and tag table into the video_tag table itself?</description>
		<content:encoded><![CDATA[<p>I have looked through your tag and i'm able to get the tag work but not with the inserting of ID into the tag table.</p>
<p>My doing a video site which require tagging for each video. i have created 3 tables, one is the video, second is the tag and the third is the video tag table as my table video is many to many to tag table. </p>
<p>The problem is i can't fetch the ID from both the video and tag table into my video_tag table as i have foriegn key to these two tables.</p>
<p>Do you know the mysql insert statement which allows me to add the ID from the video and tag table into the video_tag table itself?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

