<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Chris Cook .me &#187; featured</title>
	<atom:link href="http://chriscook.me/tag/featured/feed/" rel="self" type="application/rss+xml" />
	<link>http://chriscook.me</link>
	<description>Homepage</description>
	<lastBuildDate>Sat, 23 Oct 2010 22:53:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Return Random Record via MySQL</title>
		<link>http://chriscook.me/web-development/return-random-record-via-mysql/</link>
		<comments>http://chriscook.me/web-development/return-random-record-via-mysql/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 20:01:54 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[chris cook]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[RAND]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://chriscook.me/?p=96</guid>
		<description><![CDATA[There are many practical and frequently used methods requiring a random record to be called. For instance, when you see &#8220;featured profiles&#8221; or random customer comments on a website, they are most likely using a function to call a random record. In addition, this function can allow you to display data in a random order. [...]]]></description>
			<content:encoded><![CDATA[<p>There are many practical and frequently used methods requiring a random record to be called.  For instance, when you see &#8220;featured profiles&#8221; or random customer comments on a website, they are most likely using a function to call a random record.</p>
<p>In addition, this function can allow you to display data in a random order.</p>
<p>Here&#8217;s how it works:<br />
{code type=mysql}<br />
SELECT field_1, field_2, field_3, field_4<br />
FROM table_name<br />
WHERE parameter = 1<br />
ORDER BY RAND()<br />
LIMIT 1<br />
{/code}</p>
<p>It&#8217;s that simple.  Please post your feedback!</p>
]]></content:encoded>
			<wfw:commentRss>http://chriscook.me/web-development/return-random-record-via-mysql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

