<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Snippets for the Idlemind</title>
		<link>http://www.bytemycode.com</link>
		<description>Snippets for this member.</description>
		<pubDate>Wed, 08 Oct 2008 03:06:39 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	<item>
	<title>Simple, Easy PHP Hit Counter</title>
	<link>http://www.bytemycode.com/snippets/snippet/751/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/751/comments/</comments>
	<pubDate>Wed, 07 Nov 2007 14:45:07 +0000</pubDate>
	<dc:creator>Idlemind</dc:creator>
	<category>PHP</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/751/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Wed. Nov. 7th, 2007  2:45 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/751/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/Idlemind/" title="Helper">Idlemind</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/751/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 3
			<p>If it's a .php page, you can simply include this file where you want a hit counter to appear.<br /><br />One file - text output.  Very simple, very easy.  Based off the filename of the page (creates a pagename.counter file to hold the count).<br />(No use for it myself - made it for a friend).</p>
		]]>
	</description>
</item><item>
	<title>Cursor Action Without a Cursor</title>
	<link>http://www.bytemycode.com/snippets/snippet/603/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/603/comments/</comments>
	<pubDate>Wed, 28 Feb 2007 13:11:41 +0000</pubDate>
	<dc:creator>Idlemind</dc:creator>
	<category>MSSQL, mysql</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/603/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Wed. Feb. 28th, 2007  1:11 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/603/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/Idlemind/" title="Helper">Idlemind</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/MSSQL">MSSQL</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/mysql">mysql</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/603/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 2
			<p>When you need to perform an action on a single row of data, many people turn to cursors.  Cursors come with a lot of overhead in the database engine and can be confusing.  Here's a way to get the same results without the overhead in a much simplier way.</p>
		]]>
	</description>
</item><item>
	<title>PHP/MySQL Authentication</title>
	<link>http://www.bytemycode.com/snippets/snippet/577/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/577/comments/</comments>
	<pubDate>Mon, 15 Jan 2007 17:30:36 +0000</pubDate>
	<dc:creator>Idlemind</dc:creator>
	<category>Authentication, mysql, PHP, Security</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/577/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Jan. 15th, 2007  5:30 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/577/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/Idlemind/" title="Helper">Idlemind</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/Authentication">Authentication</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/mysql">mysql</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Security">Security</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/577/comments/">8 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 14
			<p>MySQL 5.x Stored Routines, PHP Session Values, a little CSS oh my!  Complex to set up but easy to impliment.  Geared toward security, simplicity (of use) and convenience.</p>
		]]>
	</description>
</item><item>
	<title>get the Value of a Select box</title>
	<link>http://www.bytemycode.com/snippets/snippet/414/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/414/comments/</comments>
	<pubDate>Thu, 05 Oct 2006 12:01:44 +0000</pubDate>
	<dc:creator>Idlemind</dc:creator>
	<category>ajax, JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/414/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Oct. 5th, 2006  12:01 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/414/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/Idlemind/" title="Helper">Idlemind</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/ajax">ajax</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/414/comments/">4 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 11
			<p>I use this in my AJAX as a quick way to get the Value of the selected item in a Select HTML object.  If nothing is selected, it returns zero.<br />(May be basic to y'all, but maybe really usefull to someone else).</p>
		]]>
	</description>
</item><item>
	<title>MySQL Lead-In Sentence fragment...</title>
	<link>http://www.bytemycode.com/snippets/snippet/413/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/413/comments/</comments>
	<pubDate>Thu, 05 Oct 2006 11:49:42 +0000</pubDate>
	<dc:creator>Idlemind</dc:creator>
	<category>mysql, PHP</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/413/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Oct. 5th, 2006  11:49 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/413/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/Idlemind/" title="Helper">Idlemind</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/mysql">mysql</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/413/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 23
			<p>"Today in the news, MySQL previews..."<br /><br />As a "preview" of text, this MySQL select will return the first few words out of a text field in a database.  It returns entire words (doesn't cut them off in the middle) and follows the last word with an elipse "..."<br /><br />In the PHP, assign $CharactersToDisplay to a number - the approximate number of characters desired (or you can hard-code it if you want).<br /><br />For the example, I also use $TheID as the row identity for the record to display.</p>
		]]>
	</description>
</item>
	</channel>
</rss>