<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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/" version="2.0">

<channel>
	<title>idProjections.com</title>
	
	<link>http://idprojections.com</link>
	<description />
	<pubDate>Sun, 04 Jan 2009 18:26:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/idProjections" type="application/rss+xml" /><item>
		<title>Text Message Marketing Request</title>
		<link>http://idprojections.com/text-message-marketing-request</link>
		<comments>http://idprojections.com/text-message-marketing-request#comments</comments>
		<pubDate>Sun, 04 Jan 2009 18:26:16 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://idprojections.com/text-message-marketing-request</guid>
		<description><![CDATA[I am thinking about a project. But I need your help! I need the API for as many aggregators as possible. I have emailed them all, but so far most are unresponsive. If you happen to have any information on some companies, it would be very helpful.
I still need APIs from companies like :
http://www.slingermobile.com/
http://www.rhbrands.com/
http://www.messagebuzz.com/
http://www.cellitmarketing.com/
http://www.promotxt.com/
http://www.clubtexting.com/
And I [...]]]></description>
			<content:encoded><![CDATA[<p>I am thinking about a project. But I need your help! I need the API for as many aggregators as possible. I have emailed them all, but so far most are unresponsive. If you happen to have any information on some companies, it would be very helpful.<br />
I still need APIs from companies like :<br />
http://www.slingermobile.com/<br />
http://www.rhbrands.com/<br />
http://www.messagebuzz.com/<br />
http://www.cellitmarketing.com/<br />
http://www.promotxt.com/<br />
http://www.clubtexting.com/</p>
<p>And I am sure there are tons others, but it would helpful to get these for a start&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://idprojections.com/text-message-marketing-request/feed</wfw:commentRss>
		</item>
		<item>
		<title>Timed Image Rotator</title>
		<link>http://idprojections.com/timed-image-rotator</link>
		<comments>http://idprojections.com/timed-image-rotator#comments</comments>
		<pubDate>Sun, 07 Dec 2008 20:18:03 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://idprojections.com/?p=97</guid>
		<description><![CDATA[I was working on a project a while back and I ran across a really neat blog. I wish I could remember the link to the site as I would gladly give credit to where my idea came from. I will edit this if I run across it again.
Anyway, he had a picture of his [...]]]></description>
			<content:encoded><![CDATA[<p>I was working on a project a while back and I ran across a really neat blog. I wish I could remember the link to the site as I would gladly give credit to where my idea came from. I will edit this if I run across it again.</p>
<p>Anyway, he had a picture of his parent&#8217;s farm that would change according to not only the time of day, but the current weather. He didn&#8217;t want to share his code with the public as I am sure it took quit a while to produce so I can understand, but I liked the concept and wanted to use it.</p>
<p>I was soon given a project where I could use a technique like that - <a href="http://idprojections.com/portfolio/charlies-farm-and-home">Charlies Farm and Home</a> - so I began working on it.<br />
<span id="more-97"></span><br />
Now, there are many different ways to have done this, but I decided I wanted it to work on the user&#8217;s end, so that the user would get an image depicting the time of day it currently was at their house. Obviously, since it was going to be a client side appication, I am going to use JavaScript to accomplish the task.</p>
<p>First off, we are going to create the XHTML document that we are going to use. Now, I am a big fan of writing my XHTML semantically, so I am going to be using the &lt;h1&gt; tag for my header and then doing a quick image replacement technique, so that the header is not only SEO friendly, but usable by those with disabilities and users will even have a fall back in case JavaScript is disabled on their browser.</p>
<p>Let&#8217;s start with a really basic XHTML document.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict html4strict" style="font-family:monospace;"><span style="color: #00bbdd;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span> xmlns<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/html; charset=UTF-8&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span>&gt;</span>Site Title<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Site or Page Title<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></pre></div></div>

<p>After we get the basics done, we can throw in a little CSS. We will wrap the text inside the &lt;h1&gt; tag with a span and then we will use CSS to hide the text from browsers with CSS enabled and we will show them an image in it&#8217;s place. This will be the default image that users with JavaScript disabled will see.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict html4strict" style="font-family:monospace;"><span style="color: #00bbdd;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span> xmlns<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/html; charset=UTF-8&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span>&gt;</span>Site Title<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">style</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</span>
h1 {
  background: #000 url(../image/directory/1.jpg) no-repeat left top;
  width: 801px;
  height: 241px;
}
h1 span {
  display: none;
}
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">style</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;</span>Site or Page Title<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></pre></div></div>

<p>Now, let&#8217;s take a look at the the JavaScript we are going to use to grab the images&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="javascript javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> getIMG<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
 datetoday <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
 timenow<span style="color: #339933;">=</span>datetoday.<span style="color: #660066;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
 datetoday.<span style="color: #660066;">setTime</span><span style="color: #009900;">&#40;</span>timenow<span style="color: #009900;">&#41;</span>;
 thehour <span style="color: #339933;">=</span> datetoday.<span style="color: #660066;">getHours</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
 <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>thehour <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">22</span><span style="color: #009900;">&#41;</span>
  display <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;../image/directory/1.jpg&quot;</span>;
 <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>thehour <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">18</span><span style="color: #009900;">&#41;</span>
  display <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;../image/directory/2.jpg&quot;</span>;
 <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>thehour <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">8</span><span style="color: #009900;">&#41;</span>
  display <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;../image/directory/3.jpg&quot;</span>;
 <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>thehour <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">5</span><span style="color: #009900;">&#41;</span>
  display <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;../image/directory/4.jpg&quot;</span>;
 <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>thehour <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>
  display <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;../image/directory/1.jpg&quot;</span>;
 <span style="color: #000066; font-weight: bold;">else</span>
  display <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;../image/directory/1.jpg&quot;</span>;
&nbsp;
 <span style="color: #003366; font-weight: bold;">var</span> image <span style="color: #339933;">=</span> <span style="color: #3366CC;">'&lt;'</span>;  image<span style="color: #339933;">+=</span><span style="color: #3366CC;">'img alt=&quot;&quot; src=../image/directory/'</span> <span style="color: #339933;">+</span> display <span style="color: #339933;">+</span> <span style="color: #3366CC;">' /'</span>;  image<span style="color: #339933;">+=</span><span style="color: #3366CC;">'&gt;'</span>;
&nbsp;
 document.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span>image<span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>We will add a call to the JavaScript in the HTML and then add the call to grab the image that the JavaScript chooses.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict html4strict" style="font-family:monospace;"><span style="color: #00bbdd;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span> xmlns<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/html; charset=UTF-8&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span>&gt;</span>Site Title<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;rotator.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">style</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</span>
h1 {
  background: #000 url(../image/directory/1.jpg) no-repeat left top;
  width: 801px;
  height: 241px;
}
h1 span {
  display: none;
}
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">style</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;</span>Site or Page Title<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>getIMG();<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></pre></div></div>

<p>That&#8217;s pretty much it. You&#8217;ll need to edit the size of the image in the CSS for the &lt;h1&gt; tag and you will need to specify the path to your image directory in the JavaScript and of course make sure all the images are named correctly.</p>
<p>Feel free to comment if you have any suggestions or questions, I will work on a jQuery version of this one of these days and post it.</p>
]]></content:encoded>
			<wfw:commentRss>http://idprojections.com/timed-image-rotator/feed</wfw:commentRss>
		</item>
		<item>
		<title>Easy Way to Log Referral IDs with PHP</title>
		<link>http://idprojections.com/easy-way-to-log-referral-ids-with-php</link>
		<comments>http://idprojections.com/easy-way-to-log-referral-ids-with-php#comments</comments>
		<pubDate>Mon, 01 Dec 2008 00:19:48 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
		
		<category><![CDATA[Tutorial]]></category>

		<category><![CDATA[Cookies]]></category>

		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://idprojections.com/?p=67</guid>
		<description><![CDATA[I figured if I am going to have a blog on this site, I might as well post something informational and hopefully useful to someone so I wrote up this little diddy.
So, I was working on a recent project and needed an easy way to track referral URL uses. They weren&#8217;t going to really be [...]]]></description>
			<content:encoded><![CDATA[<p>I figured if I am going to have a blog on this site, I might as well post something informational and hopefully useful to someone so I wrote up this little diddy.</p>
<p>So, I was working on a recent project and needed an easy way to track referral URL uses. They weren&#8217;t going to really be affiliates, but they got a small commission off of every sale they drove to the site&#8230; so ya, I guess it was like an affiliate tracker&#8230; but I just needed something quick and easy so I came up with this little script.</p>
<p><span id="more-67"></span></p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000088;">$urlParts</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="">'.'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="">'HTTP_HOST'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000088;">$referralID</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$urlParts</span><span style="color: #009900;">&#91;</span><span style="color:#800080;">0</span><span style="color: #009900;">&#93;</span>;
<span style="color: #990000;">setcookie</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;site_referral&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$referralID</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">7200</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;/&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;example.com&quot;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Location: https://www.example.com/&quot;</span><span style="color: #009900;">&#41;</span>;</pre></div></div>

<p>Basically, I gave each referrer a subdomain (http://referrer.example.com/) and then when the user goes to this subdomain your site will grab the URL and break it into three parts via the explode function. It will then grab the first part, which is obviously the referral&#8217;s ID you gave them.</p>
<p>It will then write that to a cookie, or if you wanted a database, and then it redirects the user to the homepage of your site like nothing ever happened.</p>
<p>I set the cookie so that I could pass it around a few times, but you could replace the setcookie function with something like this.</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000088;">$referralSet</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT referral FROM referralLogs WHERE referral=<span style="color: #000099; font-weight: bold;">\&quot;</span>$referralID<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$referralSet</span> <span style="color: #339933;">!=</span> <span style="color: #000088;">$referralID</span> <span style="color: #009900;">&#123;</span>
<span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;INSERT INTO referralLogs SET referral=<span style="color: #000099; font-weight: bold;">\&quot;</span>$referralID<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$referralCounter</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT counter FROM referralLogs WHERE referral=<span style="color: #000099; font-weight: bold;">\&quot;</span>$referralID<span style="color: #000099; font-weight: bold;">\&quot;</span> LIMIT 1&quot;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000088;">$referralCounter</span>++;
<span style="color: #000088;">$referralUpdate</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;UPDATE referralLogs WHERE referral=<span style="color: #000099; font-weight: bold;">\&quot;</span>$referral<span style="color: #000099; font-weight: bold;">\&quot;</span> SET count=<span style="color: #000099; font-weight: bold;">\&quot;</span>$referralCounter<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #009900;">&#41;</span>;</pre></div></div>

<p>I didn&#8217;t use this exact code, but I think it is valid. This should check to see if you already have the current referral code in your database and if not, add it. Then it will grab the counter from the database and increase the count by one.</p>
<p>If you run into any errors, with it, feel free to post a comment below and I will try and help out!</p>
]]></content:encoded>
			<wfw:commentRss>http://idprojections.com/easy-way-to-log-referral-ids-with-php/feed</wfw:commentRss>
		</item>
		<item>
		<title>Turkey Dais!</title>
		<link>http://idprojections.com/turkey-dais</link>
		<comments>http://idprojections.com/turkey-dais#comments</comments>
		<pubDate>Thu, 27 Nov 2008 21:46:41 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
		
		<category><![CDATA[Nothing Important]]></category>

		<guid isPermaLink="false">http://localhost:8888/?p=18</guid>
		<description><![CDATA[Turkey, Bud-Light, Familia, and more Bud-Light&#8230; Gotta love the holidays!
I ate too much at my family&#8217;s house and then ended up heading over to my wife&#8217;s family&#8217;s house and ate even more.
Today is the celebration of my new site going live and I have high hopes that someday people will have a reason to stop [...]]]></description>
			<content:encoded><![CDATA[<p>Turkey, Bud-Light, Familia, and more Bud-Light&#8230; Gotta love the holidays!</p>
<p>I ate too much at my family&#8217;s house and then ended up heading over to my wife&#8217;s family&#8217;s house and ate even more.</p>
<p>Today is the celebration of my new site going live and I have high hopes that someday people will have a reason to stop in! Until then I will sit here and talk to myself&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://idprojections.com/turkey-dais/feed</wfw:commentRss>
		</item>
		<item>
		<title>Hello Inter-tubes!</title>
		<link>http://idprojections.com/hello-world-2</link>
		<comments>http://idprojections.com/hello-world-2#comments</comments>
		<pubDate>Thu, 27 Nov 2008 05:27:51 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
		
		<category><![CDATA[Nothing Important]]></category>

		<category><![CDATA[Blog]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Freelance]]></category>

		<category><![CDATA[jQuery]]></category>

		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://localhost:8888/?p=1</guid>
		<description><![CDATA[Welcome to the NEW idProjections.com!
My name is Kyle and I fancy myself a Web Developer of sorts. I am a freelance coder out of St. Louis, MO. I plan on keeping this site up-to-date with my latest projects and my pieces of code that I might find interesting.
This is my first blog so we will [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Welcome to the NEW idProjections.com!</strong></p>
<p>My name is Kyle and I fancy myself a Web Developer of sorts. I am a freelance coder out of St. Louis, MO. I plan on keeping this site up-to-date with my latest projects and my pieces of code that I might find interesting.</p>
<p>This is my first blog so we will see how this goes!</p>
<p><span id="more-4"></span></p>
<p>I enjoy coding in CSS, XHTML, PHP, MySQL, jQuery, and plan on learning Ruby on Rails here one of these days! I enjoy spending time on <a href="http://csscreator.com/">CSSCreator.com</a> trying to help out other CSS coders and receiving some help there myself whenever I run into a wall.</p>
<p>If you have any questions about anything that I post on here please feel free to post a comment and hopefully I will be able to help out or if I happen to get two readers, someone else will be able to come along and help out.</p>
]]></content:encoded>
			<wfw:commentRss>http://idprojections.com/hello-world-2/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
