<?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>Dave Wooding &#187; affiliate</title>
	<atom:link href="http://www.davewooding.com/tag/affiliate/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davewooding.com</link>
	<description></description>
	<lastBuildDate>Sat, 28 Aug 2010 17:52:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting Up An Affiliate Database Driven Website</title>
		<link>http://www.davewooding.com/setting-up-an-affiliate-database-driven-website/</link>
		<comments>http://www.davewooding.com/setting-up-an-affiliate-database-driven-website/#comments</comments>
		<pubDate>Sat, 30 May 2009 00:12:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[affiliate]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=10</guid>
		<description><![CDATA[So you can make money &#8211; automatically.
You can have a &#8220;hands free&#8221; database driven affiliate site up and running by following these instructions.
The first datafeed video (the one you watched at the top of this page) gets a datafeed on your site ready for use.

FTP zip datafeed to your web server
Unzip the file on your [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>So you can make money &#8211; automatically.</p>
<p><strong>You can have a &#8220;hands free&#8221; database driven affiliate site up and running by following these instructions.</strong></p>
<p>The first <a href="http://www.youtube.com/watch?v=3u3q5dtJ3OM" target="_blank">datafeed video</a> (the one you watched at the top of this page) gets a datafeed on your site ready for use.</p>
<ul>
<li>FTP zip datafeed to your web server</li>
<li>Unzip the file on your server</li>
</ul>
<p>Simple.</p>
<p>Now we get ready to dump the datafeed into a MySQL database.</p>
<p>First things first.  Need to setup a MySQL database &#8211; that means having a database name, a username, and password.</p>
<p>This <a href="http://www.youtube.com/watch?v=TRqdYsdnkmA" target="_blank">database setup video</a> shows you exactly what to do.</p>
<ul>
<li>Create a MySQL database</li>
<li>Create a user and password</li>
<li>Assign the user to the database</li>
</ul>
<p><strong>Keep Your Site Running Smooth</strong></p>
<p>To make life a little easier, you will want to create a config file that contains the database, username, and password.  This file, which we will name config.php, will be used to retrieve and store information.</p>
<p>Config file should look something like this.</p>
<p><code><font color="#000000"><br />
<font color="#0000BB">&lt;?</p>
<p>$mysql_database&nbsp;</font><font color="#007700">=&nbsp;</font><font color="#DD0000">"account_databasename"</font><font color="#007700">;</p>
<p></font><font color="#0000BB">$mysql_user&nbsp;</font><font color="#007700">=&nbsp;</font><font color="#DD0000">"account_databaseuser"</font><font color="#007700">;</p>
<p></font><font color="#0000BB">$mysql_password&nbsp;</font><font color="#007700">=&nbsp;</font><font color="#DD0000">"password"</font><font color="#007700">;</p>
<p></font><font color="#0000BB">$dbh</font><font color="#007700">=</font><font color="#0000BB">mysql_connect&nbsp;</font><font color="#007700">(</font><font color="#DD0000">"localhost"</font><font color="#007700">,&nbsp;</font><font color="#0000BB">$mysql_user</font><font color="#007700">,&nbsp;</font><font color="#0000BB">$mysql_password&nbsp;</font><font color="#007700">)&nbsp;or&nbsp;die&nbsp;(</font><font color="#0000BB">mysql_error</font><font color="#007700">());</p>
<p></font><font color="#0000BB">mysql_select_db&nbsp;</font><font color="#007700">(</font><font color="#0000BB">$mysql_database</font><font color="#007700">);</p>
<p></font><font color="#0000BB">?&gt;</font><br />
</font><br />
</code><br />
Once complete, the config file gets uploaded to your server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/setting-up-an-affiliate-database-driven-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
