<?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>Drumming Pictures &#187; Uncategorized</title>
	<atom:link href="http://www.drummingpictures.com/category/uncategorized/feed" rel="self" type="application/rss+xml" />
	<link>http://www.drummingpictures.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sat, 20 Nov 2010 15:22:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Hello world!</title>
		<link>http://www.drummingpictures.com/hello-world</link>
		<comments>http://www.drummingpictures.com/hello-world#comments</comments>
		<pubDate>Thu, 18 Nov 2010 00:01:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.drummingpictures.com/?p=1</guid>
		<description><![CDATA[Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!]]></description>
			<content:encoded><![CDATA[<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.drummingpictures.com/hello-world/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Odd and Even functions.</title>
		<link>http://www.drummingpictures.com/php-odd-and-even</link>
		<comments>http://www.drummingpictures.com/php-odd-and-even#comments</comments>
		<pubDate>Thu, 08 Apr 2010 03:35:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Rotator]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.drummingpictures.com/?p=26</guid>
		<description><![CDATA[I wanted to create something today, so I made this. The idea is very basic, you have two functions (Odd and Even). Using Odd: this allows you to find out if an integer is an odd number (cannot be divided by two). Using Even: this allows you to find out if an integer is an [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to create something today, so I made this. The idea is very basic, you have two functions (Odd and Even). Using Odd: this allows you to find out if an integer is an odd number (cannot be divided by two). Using Even: this allows you to find out if an integer is an even number (Can be divided by two). Both functions return false or true depending on the out-come.</p>
<h3>PHP FUNCTION(S):</h3>
<p>number: even ( string: <em>$int</em> )<br />
number: odd ( string <em>$int</em> )</p>
<h3>Parameters:</h3>
<p><em>$int</em>: (Required)</p>
<ul>
<li>Classification: String</li>
<li>Allows: Integers</li>
<li>is Array: no</li>
</ul>
<h3>Examples:</h3>
<p><code>&lt;?php<br />
require("path/to/your/odd_even.php");<br />
// True statements //<br />
if(even("12") == true){<br />
echo "using even, we figured out that 12 is an even number!";<br />
}<br />
if(odd("11") == true){<br />
echo "using odd, we figured out that 11 is an odd number!";<br />
}<br />
//False statements//<br />
if(even("9") == false){<br />
echo "using even, we have figured out that 9 is odd number";<br />
}<br />
if(odd("22") == true){<br />
echo "using odd, we figured out that 22 is an even number.<br />
}<br />
?&gt;<br />
</code></p>
<p>This is really meant for strings that you have not a clue what the integer will be. I will give an example, lets say I had a database table with an &#8220;id&#8221; field. I gave the id an auto_increment value. Now, I am going to display the content, but I want a background color for each different field. This is where odd and even functions come into play.</p>
<h3>Example of above:</h3>
<p><code>&lt;?php<br />
require("path/to/your/odd_even.php");<br />
//Mysql Database Connection//<br />
mysql_connect("localhost","****","*****");<br />
mysql_select_db("******") or die( "Error: database connect failed.");<br />
//query string//<br />
$query = mysql_query("SELECT * FROM `content`");<br />
//while (loop)//<br />
while($row = mysql_fetch_array($query)){<br />
echo "&lt;div style="background-color:";<br />
if(even($row['id'])){<br />
// prints red background color//<br />
echo "#f00";<br />
}else{<br />
// prints white background color//<br />
echo "#FFF";<br />
}<br />
}<br />
?&gt;<br />
</code></p>
<h2 style="text-align: center; color: #000;"><a style="color: #000;" href="http://drummingpictures.com/downloads/php/odd_even.phps" target="_blank">Download Function File<br />
</a></h2>
<p>By downloading you agree to:<br />
all rights remain to Grant Gould. I will not sell this file for any reason. I will not remove the credits to it&#8217;s creator. I will not use this in illegal ways. USE AS IS, THERE IS NO WARRANTY.<br />
If you have any problems or find error&#8217;s drop a comment below. Hope this was helpful for you!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.drummingpictures.com/php-odd-and-even/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Layout</title>
		<link>http://www.drummingpictures.com/new-layout</link>
		<comments>http://www.drummingpictures.com/new-layout#comments</comments>
		<pubDate>Fri, 30 Oct 2009 22:42:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Admin]]></category>
		<category><![CDATA[New layout]]></category>
		<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://www.drummingpictures.com/?p=18</guid>
		<description><![CDATA[A new layout has been added to Drummingpictures.com!]]></description>
			<content:encoded><![CDATA[<p>A new layout has been added to Drummingpictures.com!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.drummingpictures.com/new-layout/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

