<?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>Division Overlay Blog &#187; Uncategorized</title>
	<atom:link href="http://blog.divisionoverlay.net/category/uncategorized/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.divisionoverlay.net</link>
	<description></description>
	<lastBuildDate>Wed, 13 Jan 2010 05:35:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Creating a basic View Counter using PHP and MySQL</title>
		<link>http://blog.divisionoverlay.net/creating-a-basic-view-counter-using-php-and-mysql</link>
		<comments>http://blog.divisionoverlay.net/creating-a-basic-view-counter-using-php-and-mysql#comments</comments>
		<pubDate>Fri, 01 Jan 2010 22:14:51 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.divisionoverlay.net/?p=340</guid>
		<description><![CDATA[<div class="leftSmall"><img src="http://tycat.recoding.net/pics/viewcountTut/viewCounterHold.png" alt="this place holder" />
</div>
<div class="rightSmall">
<p class="postText">
Create a simple view counter using PHP and MySQL. 
</p>
</div>]]></description>
			<content:encoded><![CDATA[<div id="postInfoBox">
<div class="leftBig">
<img src="http://tycat.recoding.net/pics/viewcountTut/viewCounterHold.png" alt="PlaceHolder" />
</div>
<div class="rightBig">
<a class="postTitle">Creating a basic View Counter using PHP and MySQL</a><br />
<span class="smalls">on <a>January 1, 2010</a><span></p>
<p class="postText">
Create a simple view counter using PHP and MySQL.
</p>
<p></span></span></div>
</div>
<div class="clear"></div>
<div id="postActions">
	<a href="http://tycat.recoding.net/pics/viewcountTut/"><img src="http://divisionoverlay.net/blog/wp-content/themes/v4/images/demo.png" /></a><a href="http://tycat.recoding.net/pics/viewcountTut/viewCounter.txt"><img src="http://divisionoverlay.net/blog/wp-content/themes/v4/images/downloadFile.png" /></a>
</div>
<p>This tutorial relies on server side programming languages. To begin, be sure you have XAMPP or a similar localhost software running for testing purposes.<br />
<a href="http://www.apachefriends.org/en/xampp.html">Get Xampp</a></p>
<p>In this tutorial, you will learn how to make a view counter using a few lines of PHP and MySQL. We will also be playing around in phpMyAdmin to create a basic table. This is not a real use case for this technique, you will most likely be adding this to a table on the database that contains profile information or a similar table.</p>
<h3>Step 1</h3>
<p>We begin the tutorial with a basic HTML page, with a PHP brackets in topmost part of the document. This is where we will place the database connection information. Your localhost may be set up differently than this, please familiarize yourself with your username and password of your server.<br />
<a class="pop" href="http://tycat.recoding.net/pics/viewcountTut/pic1.png"><img src="http://tycat.recoding.net/pics/viewcountTut/pic1.png" width="400" height="250' alt="Step 1" /></a></p>
<h3>Step 2</h3>
<p>In good practice, declare variables with data that will be used more than once. This includes “host” which in our case is localhost. This will differ if you are using a live server, or are using this on an application in a website. “username” is the username for the server. Default username for localhost is &#8216;root&#8217;. “password”  is naturally the password to the server, again default for local host is &#8216;none (represented with empty quotes)&#8217;. “dbname” should contain the name of the database you are trying to reach. In this case we have created a database named &#8216;views&#8217;. We will go further into this in a moment. ”tblname” represents the table inside of the database that contains the information we desire, in our case we named it &#8216;counter&#8217;.<br />
<a class="pop" href="http://tycat.recoding.net/pics/viewcountTut/pic2.png"><img src="http://tycat.recoding.net/pics/viewcountTut/pic2.png" width="400" height="250' alt="Step 2" /></a></p>
<h3>Step 3</h3>
<p>Its time to open your phpMyAmdin. This is where we can access, and manipulate database data. Depending on software and platform, your URL may be different. (http://localhost/phpmyadmin/).<br />
Find  the section that allows you to create a new database, shown below. We will be making a new database named “views” as we have coded into the variables in step 2.<br />
<a class="pop" href="http://tycat.recoding.net/pics/viewcountTut/pic3.png"><img src="http://tycat.recoding.net/pics/viewcountTut/pic3.png" width="400" height="250' alt="Step 3" /></a></p>
<h3>Step 4</h3>
<p>Now, we will need to add a table and a row of data. Start off by making a table and naming it “counter” as we have coded in the variables on step 2. Then we will need 1 field of data on this table. (As mentioned before, this is not a real life use case. In actual use, you would add a field to an existing table.)<br />
<a class="pop" href="http://tycat.recoding.net/pics/viewcountTut/pic4.png"><img src="http://tycat.recoding.net/pics/viewcountTut/pic4.png" width="400" height="250' alt="Step 4" /></a></p>
<h3>Step 5</h3>
<p>After creating a new table, you will be presented with the field form. The way you make this is really up to you, for this tutorial we will just do a couple of things. The filed is named “hits” and the length is set to “5” the highest number this counter can hit will be &#8217;99999&#8242;.<br />
<a class="pop" href="http://tycat.recoding.net/pics/viewcountTut/pic5.png"><img src="http://tycat.recoding.net/pics/viewcountTut/pic5.png" width="400" height="250' alt="Step 5" /></a></p>
<h3>Step 6</h3>
<p>There are several ways you can do this through PHP, for this tutorial we will do it through phpMyAmdin. Insert a new row, and set the initial value to &#8217;0&#8242;. This will ensure the counter will start at 0 and the first view will be counted as 1.<br />
<a class="pop" href="http://tycat.recoding.net/pics/viewcountTut/pic6.png"><img src="http://tycat.recoding.net/pics/viewcountTut/pic6.png" width="400" height="250' alt="Step 6" /></a></p>
<h3>Step 7</h3>
<p>We are now done with phpMyAdmin. Lets get back to the code. We have our database set up, and we have all our variables with the names set up. Now we need top connect to the server and database.<br />
To do this, we create a new variable named “con” for &#8216;connection&#8217;. The name of this variable is not important, however you should have a clear idea of what variable is when looking at the name. </p>
<div class="code">mysql_connect()</div>
<p>this function we will use to contact the server. Inside the parenthesis is where the variables containing the server details go.</p>
<div class="code">&#8220;$host&#8221;, &#8220;$username&#8221;, &#8220;$password&#8221;</div>
<p>After the parenthesis, to make sure nothing executes unless the server is connected add the function &#8216;die()&#8217; This will stop the script from running any further.<br />
We also need to connect to the correct database, in our case the name is &#8216;views&#8217;. To do this is similar to connecting to the server.</p>
<div class="code">mysql_select_db()</div>
<p>Inside the parenthesis is where the variable containing the name of the database goes &#8220;$db_name&#8221;. Just like above, use the &#8216;die()&#8217; function to stop script execution if there is an error connecting.</p>
<p>Full code for connecting to server and database</p>
<div class="code">
< ?php<br />
    $host="localhost";<br />
    $username="root";<br />
    $password="";<br />
    $dbname="views";<br />
    $tblname="counter";</p>
<p>    $con = mysql_connect("$host", "$username", "$password")or die("cannot connect to server");<br />
    mysql_select_db("$db_name")or die("cannot select DB");<br />
?>
</p></div>
<h3>Step 8</h3>
<p>Now that we are all connected, we are ready to start the fun part. Obtaining data from the database, displaying it, and modifying it. To do this we first create a variable named &#8216;query&#8217;.<br />
Inside the variable we access the database using SQL &#8211; mysql_query()<br />
&#8220;SELECT hits FROM $tbl_name&#8221;<br />
This will select the row &#8216;hits&#8217; from the table &#8216;counter&#8217;. </p>
<p>Then we need to count how many rows are in the &#8216;hits&#8217; block. Create a new variable named &#8216;numrows&#8217;.</p>
<div class="code">
$numrows = mysql_num_rows($query);
</div>
<h3>Step 9</h3>
<p>Next we add an if-while loop.This will make sure the variable numrows has data in it, and to store that data in variables as needed.</p>
<div class="code">
if($numrows !=0) {<br />
	while ( $row = mysql_fetch_assoc($query)) {<br />
                            $views = $row['hits'];<br />
		}<br />
}
</div>
<p>This grabs the data inside the query, and stores them all in an array variable named &#8216;row&#8217;. We want to be a little more specific, so we add a variable named views and have it be the same as the hits-row.</p>
<h3>Step 10</h3>
<p>At this point the information is in the script, you just need to display it. To do this, we are going to add a print() function. Adding the variable to the print data so it is on the screen.</p>
<div class="code">
print(&#8220;There has been $views on this page&#8221;);
</div>
<p><a class="pop" href="http://tycat.recoding.net/pics/viewcountTut/pic7.png"><img src="http://tycat.recoding.net/pics/viewcountTut/pic7.png" width="400" height="250' alt="Step 7" /></a></p>
<h3>Step 11</h3>
<p>Everything works, and now we need to count up and add the new number to the database. This part is quite simple. Take the variable &#8216;views&#8217; and add 1 to it on every page load.</p>
<div class="code">$views = $views + 1;</div>
<p>We then need to put the new number in the database. To do this requires a little bit of SQL.<br />
Use the same &#8216;query&#8217; variable and structure as we have above. </p>
<div class="code">$query = mysql_query()</div>
<p>The SQL for this action is a little different than selecting. To place a new value in the database requires the following query “UPDATE $tblname SET hits=&#8217;$views&#8217;”<br />
This will update the &#8216;counter&#8217; table and set the row &#8216;hits&#8217; with the value of the variable &#8216;views&#8217;.</p>
<p>Full code in body section</p>
<div class="code">
  < ?php<br />
            $query = mysql_query("SELECT hits FROM $tblname");<br />
            $numrows = mysql_num_rows($query);</p>
<p>            if($numrows !=0) {</p>
<p>		while ( $row = mysql_fetch_assoc($query)) {<br />
                            $views = $row['hits'];<br />
		}<br />
            }<br />
           print("There has been $views on this page");</p>
<p>           $views = $views + 1;<br />
           $query = mysql_query("UPDATE $tblname SET hits='$views'");<br />
        ?>
</p></div>
<h3>Final</h3>
<p>Your view counter is done, Watch as it counts up. Questions and comments will be answered below. Thanks for reading the tutorial.</p>
<div id="postActions">
	<a href="http://tycat.recoding.net/pics/viewcountTut/"><img src="http://divisionoverlay.net/blog/wp-content/themes/v4/images/demo.png" /></a><a href="http://tycat.recoding.net/pics/viewcountTut/viewCounter.txt"><img src="http://divisionoverlay.net/blog/wp-content/themes/v4/images/downloadFile.png" /></a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.divisionoverlay.net/creating-a-basic-view-counter-using-php-and-mysql/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Happy Holidays!</title>
		<link>http://blog.divisionoverlay.net/happy-holidays</link>
		<comments>http://blog.divisionoverlay.net/happy-holidays#comments</comments>
		<pubDate>Sun, 29 Nov 2009 03:37:03 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.divisionoverlay.net/?p=324</guid>
		<description><![CDATA[<div class="leftSmall"><img src="http://tycat.recoding.net/holder/december.png" alt="this place holder" />
</div>
<div class="rightSmall">
<p class="postText">
Happy Holidays from Division Overlay. 40% off of all design packages in the month of December to celebrate the holiday and our second successful year of operation. Also, take a sneak peek at the new Echo Suite service. 
</p>
</div>]]></description>
			<content:encoded><![CDATA[<div id="postInfoBox">
<div class="leftBig"><img src="http://tycat.recoding.net/holder/december.png" alt="PlaceHolder" /></div>
<div class="rightBig"><a class="postTitle">Happy Hollidays!</a><br />
<span class="smalls">on <a>November 27, 2009</a><span></p>
<p class="postText">Happy Holidays from Division Overlay. 40% off of all design packages in the month of December to celebrate the holiday and our second successful year of operation. Also, take a sneak peek at the new Echo Suite service.</p>
<p></span></span></div>
</div>
<p>Seasons greetings from Division Overlay! It is a joyous occasion. We are approaching our second full year of operation. Not only that mile stone, it is the season of gift giving. If you look on our home page http://divisionoverlay.net/ you will see a very special offer for the month of December.</p>
<p><img src="http://divisionoverlay.net/images/holidayBig.png" alt="Holiday Savings" /></p>
<p>We are offering 40% off of all design packages in the month of December. Starting December 1st at Midnight and running through December 31st at 11:55pm. This sale includes but is not limited to Logo design, UI design, HTML mockups, Icon design, and much more. However the sale does not include, Consultations, any development work (PHP, JavaScript, XML), and Hosting.</p>
<p><img src="http://divisionoverlay.net/images/echoBig.png" alt="Echo Suite Teaser" /></p>
<p>Also this month, we are launching Echo Suite into beta. You will be able to register and use the Suite starting this December (Date TBD). There is a teaser graphic also on our homepage (http://divisionoverlay.net). There will be a separate blog post about Echo Suite when it is released.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.divisionoverlay.net/happy-holidays/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Updated Engine and Theme</title>
		<link>http://blog.divisionoverlay.net/updated-engine-and-theme</link>
		<comments>http://blog.divisionoverlay.net/updated-engine-and-theme#comments</comments>
		<pubDate>Fri, 20 Nov 2009 03:15:45 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.divisionoverlay.net/?p=316</guid>
		<description><![CDATA[<div class="leftSmall"><img src="http://tycat.recoding.net/holder/update.png" alt="this place holder" />
</div>
<div class="rightSmall">
<p class="postText">
Welcome back to the blog! We have been working on a few new features. We have also upgraded the engine behind the blog (wordpress) and optimized it by moderating plugins. Read on to learn what is new. 
</p>
</div>]]></description>
			<content:encoded><![CDATA[<div id="postInfoBox">
<div class="leftBig">
<img src="http://tycat.recoding.net/holder/update.png" alt="PlaceHolder" />
</div>
<div class="rightBig">
<a class="postTitle">Updated Engine and Theme</a><br />
<span class="smalls">on <a>November 19th 2009</a><span></p>
<p class="postText">
Welcome back to the blog! We have been working on a few new features. We have also upgraded the engine behind the blog (wordpress) and optimized it by moderating plugins. Read on to learn what is new.
</p>
<p></span></span></div>
</div>
<div class="clear"></div>
<p>Hello and welcome back to the blog. We are glad to announce the updated theme is up and functional. What is new? (Click Images to enlarge)</p>
<p><a class="pop" href="http://tycat.recoding.net/pics/newFeatures/new1.jpg"><img src="http://tycat.recoding.net/pics/newFeatures/new1sm.jpg" alt=""/></a><br />
&#8220;New&#8221; post ribbon displayed on new posts. The layout for post previews are now handled with wordpress excerpts. We have added an icon representing the post topic and a brief summary of the article which will be displayed on all new posts.<br />
<br />
<a class="pop" href="http://tycat.recoding.net/pics/newFeatures/new2.jpg"><img src="http://tycat.recoding.net/pics/newFeatures/new2sm.jpg" alt=""/></a><br />
On all new blog entries, the title, post image and the post summary will all be displayed at the top in a container for quick viewing.<br />
<br />
<a class="pop" href="http://tycat.recoding.net/pics/newFeatures/new3.jpg"><img src="http://tycat.recoding.net/pics/newFeatures/new3.jpg" alt=""/></a><br />
Now, on tutorials, instead of giving boring text links to downloads and demos we now added buttons. Clear and centered in the middle of the blog post.<br />
<br />
<a class="pop" href="http://tycat.recoding.net/pics/newFeatures/new4.jpg"><img src="http://tycat.recoding.net/pics/newFeatures/new4sm.jpg" alt=""/></a><br />
Author information and bio has also been implemented. Not a big feature, just giving the blog posts a little more personality.<br />
</p>
<h3>Other News</h3>
<p>On the development side, We have optimized the code slightly for the blog posts and home screen. We have also deactivated all the useless plugins that were installed, and updated the ones still in use. <br />
The blog is also on the latest version of wordpress (2.8.6). That ensures that we have a more secure and bug-less operating system. </p>
<p>There are currently 3 new blog posts in draft, 2 of which are tutorials and the other being an inspiration article. We hope to get those up progressively before the end of the year.</p>
<p>We are also working on a few things for holiday release. Here is a little sneak peek of some of the things we are working on.<br />
<a class="pop" href="http://tycat.recoding.net/pics/newFeatures/pre1.jpg"><img src="http://tycat.recoding.net/pics/newFeatures/pre1sm.jpg" alt=""/></a><br />
Echo Suite is a new web service created by Division Overlay. It will feature many different services combined into a central station where you will be able to use one ID to login to all the different apps.<br />
<a class="pop" href="http://tycat.recoding.net/pics/newFeatures/pre2.jpg"><img src="http://tycat.recoding.net/pics/newFeatures/pre2sm.jpg" alt=""/></a><br />
Watch for this little guy on the home page (<a href="http://divisionoverlay.net">here</a>) within the next 2 weeks. There is a special offer in the air&#8230;</p>
<p>We are also looking for people who want to by ad space (left sidebar on blog) if you are intrested, contact us (<a href="http://divisionoverlay.net/contact.php">here</a>).</p>
<p>So please leave a comment below and tell us what you think about the new features and coming attractions from Division Overlay.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.divisionoverlay.net/updated-engine-and-theme/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>28 album covers to get inspired by</title>
		<link>http://blog.divisionoverlay.net/28-album-covers-to-get-inspired-by</link>
		<comments>http://blog.divisionoverlay.net/28-album-covers-to-get-inspired-by#comments</comments>
		<pubDate>Mon, 20 Jul 2009 20:06:56 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[inspiration]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://blog.divisionoverlay.net/?p=231</guid>
		<description><![CDATA[<div class="leftSmall"><img src="http://tycat.recoding.net/holder/albums.png" alt="this place holder" />
</div>
<div class="rightSmall">
<p class="postText">
Twenty-Eight well designed album covers to inspire the designer in you.
</p>
</div>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter" title="Album Screen" src="http://tycat.recoding.net/pics/albumScreen.png" alt="" width="550" height="200" /></p>
<p>I went through my vast iTunes library (~4000 songs) and picked 28 of the most stunning album covers to spark your inspiration.<span id="more-231"></span></p>
<h2>Clean / Simple</h2>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/clean/AvA.jpg"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/clean/AvASm.jpg" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Angels%2B%2526%2BAirwaves">Angels &amp; Airwaves</a> &#8211; <a href="http://www.last.fm/music/Angels%2B%2526%2BAirwaves/We+Don%27t+Need+to+Whisper">We Don&#8217;t Need to Whisper</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/clean/avengesevenfold.jpg"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/clean/avengesevenfoldSm.jpg" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Avenged+Sevenfold">Avenged Sevenfold</a> &#8211; <a href="http://www.last.fm/music/Avenged+Sevenfold/Avenged+Sevenfold">Avenged Sevenfold</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/clean/blaqkYear.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/clean/blaqkYearSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/The+Blaqk+Year">The Blaqk Year</a> &#8211; <a href="http://www.last.fm/music/The+Blaqk+Year/After+The+Storm">After the Storm</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/clean/coheed.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/clean/coheedSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Coheed+and+Cambria">Coheed and Cambria</a> &#8211; <a href="http://www.last.fm/music/Coheed+and+Cambria/Good+Apollo%2C+I%27m+Burning+Star+IV%2C+Volume+One%3A+From+Fear+Through+The+Eyes+of+Madness">Good Apollo, I&#8217;m Burning Star IV, Vol. 1: From Fear Through The Eyes of Madness</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/clean/familyForce.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/clean/familyForceSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Family+Force+5">Family Force 5</a> &#8211; <a href="http://www.last.fm/music/Family+Force+5/Dance+Or+Die+%28EP%29">Dance or Die(EP)</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/clean/goodCharlotte.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/clean/goodCharlotteSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Good+Charlotte">Good Charlotte</a> &#8211; <a href="http://www.last.fm/music/Good+Charlotte/The+Chronicles+of+Life+and+Death+%28Life+version%29">The Chronicles of Life and Death</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/clean/hawthorneheights.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/clean/hawthorneheightsSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Hawthorne+Heights">Hawthorne Heights</a> &#8211; <a href="http://www.last.fm/music/Hawthorne+Heights/Fragile+Future">Fragile Future</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/clean/him.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/clean/himSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/HIM">H.I.M.</a> &#8211; Dark Light</p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/clean/meriwether.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/clean/meriwetherSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Meriwether">Meriwether</a> &#8211; <a href="http://www.last.fm/music/Meriwether/_/Easier">Meriwether</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/clean/paparoach.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/clean/paparoachSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Papa+Roach">Papa Roach</a> &#8211; <a href="http://www.last.fm/music/Papa+Roach/The+Paramour+Sessions">The Paramour Sessions</a></p>
<h2>Grunge</h2>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/grunge/bfmv.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/grunge/bfmvSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Bullet+For+My+Valentine">Bullet for My Valentine</a> &#8211; <a href="http://www.last.fm/music/Bullet+For+My+Valentine/Scream+Aim+Fire">Scream Aim Fire</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/grunge/demonHunter.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/grunge/demonHunterSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Demon+Hunter">Demon Hunter</a> &#8211; <a href="http://www.last.fm/music/Demon+Hunter/Storm+the+Gates+of+Hell">Storm the Gates of Hell</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/grunge/evanescence.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/grunge/evanescenceSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Evanescence">Evanescence</a> &#8211; <a href="http://www.last.fm/music/Evanescence/The+Open+Door">The Open Door</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/grunge/greeday.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/grunge/greedaySm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Green+Day">Green Day</a> &#8211; <a href="http://www.last.fm/music/Green+Day/21st+Century+Breakdown">21st Century Breakdown</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/grunge/meese.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/grunge/meeseSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Meese">Meese</a> &#8211; <a href="http://www.last.fm/music/Meese/_/Next+In+Line">Next in Line</a></p>
<p style="text-align: center;">
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/grunge/mendeed.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/grunge/mendeedSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Mendeed">Mendeed</a> &#8211; <a href="http://www.last.fm/music/Mendeed/This+War+Will+Last+Forever">This War Will Last Forever</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/grunge/mychemicalromance.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/grunge/mychemicalromanceSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/My+Chemical+Romance">My Chemical Romance</a> &#8211; <a href="http://www.last.fm/music/My+Chemical+Romance/The+Black+Parade">The Black Parade</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/grunge/rageagainst.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/grunge/rageagainstSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Rage+Against+the+Machine">Rage Against the Machine</a> &#8211; <a href="http://www.last.fm/music/Rage+Against+the+Machine/The+Battle+of+Los+Angeles">The Battle of Los Angeles</a></p>
<h2>Artistic</h2>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/artistic/3oh3.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/artistic/3oh3Sm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/3OH!3">3OH!3</a> &#8211; <a href="http://www.last.fm/music/3OH!3/Want">Want</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/artistic/AidenConviction.jpg"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/artistic/AidenConvictionSm.jpg" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Aiden">Aiden</a> &#8211; <a href="http://www.last.fm/music/Aiden/Conviction">Conviction</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/artistic/blink182.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/artistic/blink182Sm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/blink-182">Blink-182</a> &#8211; <a href="http://www.last.fm/music/blink-182/blink-182">Blink-182</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/artistic/dotdotcurve.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/artistic/dotdotcurveSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/DOT+DOT+CURVE+%3A%29">Dot Dot Curve</a> &#8211; Till the Wheels Fall Off</p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/artistic/eminem.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/artistic/eminemSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Eminem">Eminem</a> &#8211; <a href="http://www.last.fm/music/Eminem/Relapse">Relapse</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/artistic/fort-minor.jpg"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/artistic/fort-minorSm.jpg" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Fort+Minor">Fort Minor</a> &#8211; <a href="http://www.last.fm/music/Fort%2BMinor/The+Rising+Tied">The Rising Tied</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/artistic/incubus.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/artistic/incubusSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Incubus">Incubus</a> &#8211; <a href="http://www.last.fm/music/Incubus/Make+Yourself">Make Yourself</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/artistic/plus44.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/artistic/plus44Sm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/%252B44">Plus 44</a> &#8211; <a href="http://www.last.fm/music/%252B44/When+Your+Heart+Stops+Beating">When Your Heart Stops Beating</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/artistic/singleFile.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/artistic/singleFileSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Single+File">Single File</a> &#8211; <a href="http://www.last.fm/music/Single+File/Common+Struggles">Common Struggles</a></p>
<p style="text-align: center;"><a class="pop" href="http://tycat.recoding.net/pics/albumArts/artistic/takethecrown.png"><img class="aligncenter" src="http://tycat.recoding.net/pics/albumArts/artistic/takethecrownSm.png" alt="" width="300" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.last.fm/music/Take+The+Crown">Take the Crown</a> &#8211; Relapse React</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 5729px; width: 1px; height: 1px;">&lt;script type=&#8221;text/javascript&#8221;&gt;&lt;!&#8211;<br />
google_ad_client = &#8220;pub-3580651409860036&#8243;;<br />
/* 468&#215;60, created 7/21/09 */<br />
google_ad_slot = &#8220;2474491155&#8243;;<br />
google_ad_width = 468;<br />
google_ad_height = 60;<br />
//&#8211;&gt;<br />
&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;<br />
src=&#8221;http://pagead2.googlesyndication.com/pagead/show_ads.js&#8221;&gt;<br />
&lt;/script&gt;</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.divisionoverlay.net/28-album-covers-to-get-inspired-by/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Creating a basic email form using PHP</title>
		<link>http://blog.divisionoverlay.net/creating-a-basic-email-form-using-php</link>
		<comments>http://blog.divisionoverlay.net/creating-a-basic-email-form-using-php#comments</comments>
		<pubDate>Thu, 16 Jul 2009 23:10:12 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Template]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://blog.divisionoverlay.net/?p=205</guid>
		<description><![CDATA[<div class="leftSmall"><img src="http://tycat.recoding.net/holder/phpemail.png" alt="this place holder" />
</div>
<div class="rightSmall">
<p class="postText">
Extensive step-by-step tutorial on creating an email form using PHP. Includes HTML/CSS/PHP code.
</p>
</div>]]></description>
			<content:encoded><![CDATA[<h2><span>Introduction</span></h2>
<p><span>In this tutorial you will learn how to make a basic email form using xhtml, css and php. In this tutorial we will be making a small contact form where the user will fill out a form and using php will email it to your inbox. We will look in to error processing for eliminating some spam in this tutorial as well.</span><span id="more-205"></span></p>
<p><span>End results:</span></p>
<p><a class="pop" href="http://tycat.recoding.net/zip/emailForm.png"><img src="http://tycat.recoding.net/zip/emailFormSmall.png" alt="" /></a></p>
<p><span><a href="http://tycat.recoding.net/zip/emailForm/">- Try it  -</a></span></p>
<h2>Step 1 – Basic HTML template</h2>
<p><span>First lets create the basic template for the form to be placed in. This, of course will not be the template you will use, as you will probably implement this into your own design and site. This is the beginning of the template, it contains all the dividing inlays and correct tags to start out the template. </span></p>
<p><span>We will need to declare the doctype and create all the necessary header information such as the content-type and title. We also link the style sheet in this section.</span></p>
<p><span>In the body section I  have placed a number of div tags that will hold the content we will place inside them, using css later we can do some formatting.</span></p>
<div class="code"><span><em>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Strict//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#8221;&gt;</em></span></p>
<p><span><em>&lt;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221; xml:lang=&#8221;en&#8221; lang=&#8221;en&#8221;&gt;</em></span></p>
<p><span><em>&lt;head&gt;</em></span></p>
<p><span><em> &lt;meta http-equiv=&#8221;Content-type&#8221; content=&#8221;text/html; charset=UTF-8&#8243; /&gt;</em></span></p>
<p><span><em> &lt;title&gt;</em></span></p>
<p><span><em> Contact form by Division Overlay </em></span></p>
<p><span><em> &lt;/title&gt;</em></span></p>
<p><span><em> &lt;link rel=&#8221;stylesheet&#8221; href=&#8221;style.css&#8221; type=&#8221;text/css&#8221; media=&#8221;screen&#8221; /&gt;</em></span></p>
<p><span><em>&lt;/head&gt;</em></span></p>
<p><span><em>&lt;body&gt;</em></span></p>
<p><span><em> &lt;div id=&#8221;wraper&#8221;&gt;</em></span></p>
<p><span><em> &lt;div id=&#8221;container&#8221;&gt;</em></span></p>
<p><span><em> &lt;/div&gt;&lt;!&#8211; close container &#8211;&gt;</em></span></p>
<p><span><em> &lt;/div&gt;&lt;!&#8211; close wrapper &#8211;&gt;</em></span></p>
<p><span><em>&lt;/body&gt;</em></span></p>
<p><span><em>&lt;/html&gt;</em></span></div>
<p><span>Next lets make the the form with all the inputs and labels for the user to fill out that will ultimately be emailed to you when finished.</span></p>
<p><span>To correctly flow with the template we have just made place the create the form inside the “container” div.</span></p>
<div class="code"><span><em>&lt;form action=&#8221;email.php&#8221; method=&#8221;post&#8221;&gt;</em></span></p>
<p><span><em> &lt;fieldset&gt;&lt;label for=&#8221;name&#8221;&gt;Full Name: *&lt;/label&gt;&lt;input type=&#8221;text&#8221; name=&#8221;name&#8221; id=&#8221;name&#8221; /&gt;&lt;/fieldset&gt;</em></span></p>
<p><span><em> &lt;fieldset&gt;&lt;label for=&#8221;email&#8221;&gt;Email: *&lt;/label&gt;&lt;input type=&#8221;text&#8221; name=&#8221;email&#8221; id=&#8221;email&#8221; /&gt;&lt;/fieldset&gt;</em></span></p>
<p><span><em> &lt;fieldset&gt;&lt;label for=&#8221;msg&#8221;&gt;Message: *&lt;/label&gt; &lt;br /&gt;&lt;textarea name=&#8221;msg&#8221; id=&#8221;msg&#8221; cols=&#8221;30&#8243; rows=&#8221;3&#8243;&gt;&lt;/textarea&gt;&lt;/fieldset&gt;</em></span></p>
<p><span><em> &lt;div class=&#8221;buttons&#8221;&gt;</em></span></p>
<p><span><em> &lt;input type=&#8221;reset&#8221; value=&#8221;Reset&#8221; /&gt; &lt;input type=&#8221;submit&#8221; value=&#8221;Send&#8221; /&gt;</em></span></p>
<p><span><em> &lt;/div&gt;</em></span></p>
<p><span><em>&lt;/form&gt;</em></span></div>
<p><span><a href="http://tycat.recoding.net/zip/index.txt" target="_blank"><strong>Final index.html file</strong></a></span></p>
<h2>Step 2 – Styling the index</h2>
<p><span>For the sake of the tutorial I chose to add a little style to the page. Although the css is very generic, it is not required to use on your own form. It is simply used to give the tutorial a little flair. </span></p>
<p><span>To use the two images in the tutorial download them here:</span></p>
<h3>Graphics</h3>
<p><span><a href="http://tycat.recoding.net/zip/background.png" target="_blank">Background Image</a></span></p>
<p><span><a href="http://tycat.recoding.net/zip/contain.png" target="_blank">Container Box</a></span></p>
<p><span><strong><a href="http://tycat.recoding.net/zip/style.css" target="_blank">Final style.css file</a></strong></span></p>
<h2>Step 3 – Declaring Variables</h2>
<p><span>Now that we have the html template and the page styled using css and the graphics. We need to start building the actual php script that will email you when filled out. </span></p>
<p><span>First thing I like to do is declare all my variables at the top of the script for easy reference later on.</span></p>
<div class="code"><span><em>&lt;?php </em></span></p>
<p><span><em>//Gather user input and store in variables.</em></span></p>
<p><span><em>$name = $_POST["name"];</em></span></p>
<p><em>$email = $_POST["email"];</em></p>
<p><span><em>$msg = $_POST["msg"];</em></span></p>
<p><span><em>$subject = &#8220;Form submission from $name&#8221;;</em></span></div>
<p><span>These variables are pulled from the form in the index.html file. I placed them in variable names that would be easy to remember. Name, Email, Message, and the Subject is a static variable and you set it as you please. It can easily be pulled from an input if added on the form.</span></p>
<h2>Step 4 – Error processing</h2>
<p><span>For the sake of sorting out the false emails at the application level, this step should never be overlooked. As this is a basic tutorial, You only learn how to check if the fields are empty. If I get enough demand I will write more on error handling. </span></p>
<p><span>We need to check if there is any value to each field (name, email and message) and have the form die if the fields are empty.</span></p>
<div class="code"><span><em>if (empty($email)) {</em></span></p>
<p><span><em>die(&#8220;Please enter your email address.&#8221;);</em></span></p>
<p><span><em>}</em></span></p>
<p><span><em>if (empty($name)) {</em></span></p>
<p><span><em>die(&#8220;Please enter your name.&#8221;);</em></span></p>
<p><span><em>}</em></span></p>
<p><span><em>if (empty($msg)) {</em></span></p>
<p><span><em>die(&#8220;You must have forgot to enter a message.&#8221;);</em></span></p>
<p><span><em>}</em></span></div>
<p><span>The die() function will stop the  form from executing any further. So it will display the first error it catches. If you place an email, but not a name, the name name error will display and stop the script from executing. </span></p>
<p><span>If all the fields have input, then we need it to show a message to give the user a peace of mind that their message has been received. </span></p>
<div class="code"><span><em>else {</em></span></p>
<p><span><em>echo &#8220;Your email has been sent, Thanks.&#8221;;</em></span></p>
<p><span><em>}</em></span></div>
<h2>Step 5 – Email formatting</h2>
<p><span>Now that we have all the data we will need to send a message, we need to format the email in a way that is easy to read for you.</span></p>
<p><span>Setting up the time stamp. Fairly simple format. </span></p>
<p><span>Month text (July) Day, Full Year(2009) Hour:Minutes am/pm.</span></p>
<div class="code"><span><em>$todayis = date(&#8220;l, F j, Y, g:i a&#8221;) ;</em></span></div>
<p><span>This block makes up the body section of the email. </span></p>
<div class="code"><span><em>$theMail = &#8220;</em></span></p>
<p><span><em>$todayis\n</em></span></p>
<p><span><em>From: $name ($email)\n</em></span></p>
<p><span><em>Subject: $subject\n</em></span></p>
<p><span><em>Message: \n</em></span></p>
<p><span><em>$message</em></span></p>
<p><span><em>&#8220;;</em></span></div>
<p><span>This will display the time stamp we just made first. The “\n” is a line break in the text. So the next variable is on its own line. Then it will display the name and email followed by the subject and message.</span></p>
<p><span>We need a from line, so you know who the sender is before you open the email. </span></p>
<div class="code"><span><em>$from = &#8220;From: $email\r\n&#8221;;</em></span></div>
<h2>Step 6 – Email the form.</h2>
<p><span>The script is now ready to email the content to the email you choose.</span></p>
<p><span>You&#8217;ll need to place your email in the place of “your-email@doamin.org”. You can add more than just your email address if you are needing to send it to several people or departments. You can add a comma and add more email addresses in that section. </span></p>
<div class="code"><span><em>mail(&#8220;your-email@domain.org&#8221;, $subject, $theMail, $from);</em></span></p>
<p><span><em>?&gt;</em></span></div>
<p><span>End the script and you are ready to upload and test the script.</span></p>
<p><span><a href="http://tycat.recoding.net/zip/email.txt" target="_blank"><strong>Final email.php file</strong></a></span></p>
<h2><strong>Conclusion</strong></h2>
<p><strong><a class="pop" href="http://tycat.recoding.net/zip/emailForm.png"><img src="http://tycat.recoding.net/zip/emailFormSmall.png" alt="" /></a></strong></p>
<p><span><strong><a href="http://tycat.recoding.net/zip/emailForm.zip">Final EmailForm.zip</a></strong></span></p>
<p><span><strong>You should now have a working email form that will email you if all the fields have been filled out. You can do much more with this application, such as check if the email is a real email address, check for words or links you dont want inside the message, the options are endless. I hope this tutorial has helped you out, and you may have learned something new and useful today.</strong></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.divisionoverlay.net/creating-a-basic-email-form-using-php/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Welcome Back</title>
		<link>http://blog.divisionoverlay.net/welcome-back-2</link>
		<comments>http://blog.divisionoverlay.net/welcome-back-2#comments</comments>
		<pubDate>Tue, 07 Jul 2009 20:29:02 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.divisionoverlay.net/?p=196</guid>
		<description><![CDATA[Hello there! It&#8217;s been a long time coming, but we have finally accomplished the redesign. After six months of designing and coding the site. We have finally produced what we set out to do. This is the fourth major redesign of Division Overlay since we launched in December 2007. Creating the User Interface was something [...]]]></description>
			<content:encoded><![CDATA[<p>Hello there!</p>
<p>It&#8217;s been a long time coming, but we have finally accomplished the redesign. After six months of designing and coding the site. We have finally produced what we set out to do.</p>
<p>This is the fourth major redesign of Division Overlay since we launched in December 2007. Creating the User Interface was something of a challenge for the first few mockups. We went through dozens of potential candidates for the design, all of them ultimately were rejected in favor of this one. After we had finished the grueling hours of tedious designing and tweaking, we had a tremendous problem. <span id="more-196"></span>The PSD document with our design became corrupted. Luckily we had saved PNG formatted images of each page on the PSD, so all we had to do was back track and trace our work. From that speed bump, we were able to race toward our mark at full speed, continuing on from slicing the images, to coding the template. On to programing the PHP and jQuery to finishing up with this wordpress theme.</p>
<h3>Now on to more business</h3>
<p>Along with the redesign launch, we also have a slew of new things for you to download and have fun with.</p>
<p>Including:</p>
<ul>
<li><a href="http://divisionoverlay.net/blueQuartz3.php" target="_blank">Blue Quartz 3 template</a></li>
<li><a href="http://divisionoverlay.net/launchFuture.php" target="_blank">LaunchFuture template</a></li>
<li><a href="http://divisionoverlay.net/misc.php" target="_blank">Quote Machine</a></li>
<li><a href="http://divisionoverlay.net/kingsCrownLogo.php" target="_blank">Kings Crown Set</a></li>
<li>and much more..</li>
</ul>
<p>We will also be writing more posts ranging from full in depth how-to tutorials to updates on what Division Overlay is up to.</p>
<p>After all the work we have put in, it would be nice to leave a comment no how you think the new site looks.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.divisionoverlay.net/welcome-back-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic PHP quote generator</title>
		<link>http://blog.divisionoverlay.net/basic-php-quote-generator</link>
		<comments>http://blog.divisionoverlay.net/basic-php-quote-generator#comments</comments>
		<pubDate>Sun, 18 Jan 2009 06:07:58 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.divisionoverlay.net/?p=178</guid>
		<description><![CDATA[In this tutorial, I will go through the way to make a randomly picked quote generator work on a modular level. This is so it can be added to and updated, ported and reused without having to copy a bunch of files. This technique is a pretty easy one. Let’s start off by making the [...]]]></description>
			<content:encoded><![CDATA[<p><!--[if gte mso 9]><xml> <o :DocumentProperties> </o><o :Version>12.00</o> </xml>< ![endif]--><!--[if gte mso 9]><xml> <w :WordDocument> </w><w :View>Normal</w> <w :Zoom>0</w> <w :TrackMoves /> <w :TrackFormatting /> <w :PunctuationKerning /> <w :ValidateAgainstSchemas /> <w :SaveIfXMLInvalid>false</w> <w :IgnoreMixedContent>false</w> <w :AlwaysShowPlaceholderText>false</w> <w :DoNotPromoteQF /> <w :LidThemeOther>EN-US</w> <w :LidThemeAsian>X-NONE</w> <w :LidThemeComplexScript>X-NONE</w> <w :Compatibility> <w :BreakWrappedTables /> <w :SnapToGridInCell /> <w :WrapTextWithPunct /> <w :UseAsianBreakRules /> <w :DontGrowAutofit /> <w :SplitPgBreakAndParaMark /> <w :DontVertAlignCellWithSp /> <w :DontBreakConstrainedForcedTables /> <w :DontVertAlignInTxbx /> <w :Word11KerningPairs /> <w :CachedColBalance /> </w> <w :BrowserLevel>MicrosoftInternetExplorer4</w> <m :mathPr> <m :mathFont m:val="Cambria Math" /> <m :brkBin m:val="before" /> <m :brkBinSub m:val="&#45;-" /> <m :smallFrac m:val="off" /> <m :dispDef /> <m :lMargin m:val="0" /> <m :rMargin m:val="0" /> <m :defJc m:val="centerGroup" /> <m :wrapIndent m:val="1440" /> <m :intLim m:val="subSup" /> <m :naryLim m:val="undOvr" /> </m> </xml>< ![endif]--><!--[if gte mso 9]><xml> <w :LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"   DefSemiHidden="true" DefQFormat="false" DefPriority="99"   LatentStyleCount="267"> <w :LsdException Locked="false" Priority="0" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Normal" /> <w :LsdException Locked="false" Priority="9" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="heading 1" /> <w :LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2" /> <w :LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3" /> <w :LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4" /> <w :LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5" /> <w :LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6" /> <w :LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7" /> <w :LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8" /> <w :LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9" /> <w :LsdException Locked="false" Priority="39" Name="toc 1" /> <w :LsdException Locked="false" Priority="39" Name="toc 2" /> <w :LsdException Locked="false" Priority="39" Name="toc 3" /> <w :LsdException Locked="false" Priority="39" Name="toc 4" /> <w :LsdException Locked="false" Priority="39" Name="toc 5" /> <w :LsdException Locked="false" Priority="39" Name="toc 6" /> <w :LsdException Locked="false" Priority="39" Name="toc 7" /> <w :LsdException Locked="false" Priority="39" Name="toc 8" /> <w :LsdException Locked="false" Priority="39" Name="toc 9" /> <w :LsdException Locked="false" Priority="35" QFormat="true" Name="caption" /> <w :LsdException Locked="false" Priority="10" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Title" /> <w :LsdException Locked="false" Priority="1" Name="Default Paragraph Font" /> <w :LsdException Locked="false" Priority="11" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtitle" /> <w :LsdException Locked="false" Priority="22" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Strong" /> <w :LsdException Locked="false" Priority="20" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Emphasis" /> <w :LsdException Locked="false" Priority="59" SemiHidden="false"    UnhideWhenUsed="false" Name="Table Grid" /> <w :LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text" /> <w :LsdException Locked="false" Priority="1" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="No Spacing" /> <w :LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading" /> <w :LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List" /> <w :LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid" /> <w :LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1" /> <w :LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2" /> <w :LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1" /> <w :LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2" /> <w :LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1" /> <w :LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2" /> <w :LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3" /> <w :LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List" /> <w :LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading" /> <w :LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List" /> <w :LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid" /> <w :LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 1" /> <w :LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 1" /> <w :LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 1" /> <w :LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1" /> <w :LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1" /> <w :LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 1" /> <w :LsdException Locked="false" UnhideWhenUsed="false" Name="Revision" /> <w :LsdException Locked="false" Priority="34" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="List Paragraph" /> <w :LsdException Locked="false" Priority="29" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Quote" /> <w :LsdException Locked="false" Priority="30" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Quote" /> <w :LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 1" /> <w :LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1" /> <w :LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1" /> <w :LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1" /> <w :LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 1" /> <w :LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 1" /> <w :LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 1" /> <w :LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 1" /> <w :LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 2" /> <w :LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 2" /> <w :LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 2" /> <w :LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2" /> <w :LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2" /> <w :LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 2" /> <w :LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 2" /> <w :LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2" /> <w :LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2" /> <w :LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2" /> <w :LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 2" /> <w :LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 2" /> <w :LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 2" /> <w :LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 2" /> <w :LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 3" /> <w :LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 3" /> <w :LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 3" /> <w :LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3" /> <w :LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3" /> <w :LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 3" /> <w :LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 3" /> <w :LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3" /> <w :LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3" /> <w :LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3" /> <w :LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 3" /> <w :LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 3" /> <w :LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 3" /> <w :LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 3" /> <w :LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 4" /> <w :LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 4" /> <w :LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 4" /> <w :LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4" /> <w :LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4" /> <w :LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 4" /> <w :LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 4" /> <w :LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4" /> <w :LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4" /> <w :LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4" /> <w :LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 4" /> <w :LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 4" /> <w :LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 4" /> <w :LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 4" /> <w :LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 5" /> <w :LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 5" /> <w :LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 5" /> <w :LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5" /> <w :LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5" /> <w :LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 5" /> <w :LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 5" /> <w :LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5" /> <w :LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5" /> <w :LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5" /> <w :LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 5" /> <w :LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 5" /> <w :LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 5" /> <w :LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 5" /> <w :LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 6" /> <w :LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 6" /> <w :LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 6" /> <w :LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6" /> <w :LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6" /> <w :LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 6" /> <w :LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 6" /> <w :LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6" /> <w :LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6" /> <w :LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6" /> <w :LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 6" /> <w :LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 6" /> <w :LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 6" /> <w :LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 6" /> <w :LsdException Locked="false" Priority="19" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis" /> <w :LsdException Locked="false" Priority="21" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis" /> <w :LsdException Locked="false" Priority="31" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference" /> <w :LsdException Locked="false" Priority="32" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Reference" /> <w :LsdException Locked="false" Priority="33" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Book Title" /> <w :LsdException Locked="false" Priority="37" Name="Bibliography" /> <w :LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading" /> </w> </xml>< ![endif]--> <!--[if gte mso 10]> <mce :style>< !<br />
/* Style Definitions */<br />
table.MsoNormalTable<br />
{mso-style-name:"Table Normal";<br />
mso-tstyle-rowband-size:0;<br />
mso-tstyle-colband-size:0;<br />
mso-style-noshow:yes;<br />
mso-style-priority:99;<br />
mso-style-qformat:yes;<br />
mso-style-parent:"";<br />
mso-padding-alt:0in 5.4pt 0in 5.4pt;<br />
mso-para-margin-top:0in;<br />
mso-para-margin-right:0in;<br />
mso-para-margin-bottom:10.0pt;<br />
mso-para-margin-left:0in;<br />
line-height:115%;<br />
mso-pagination:widow-orphan;<br />
font-size:11.0pt;<br />
font-family:"Calibri","sans-serif";<br />
mso-ascii-font-family:Calibri;<br />
mso-ascii-theme-font:minor-latin;<br />
mso-fareast-font-family:"Times New Roman";<br />
mso-fareast-theme-font:minor-fareast;<br />
mso-hansi-font-family:Calibri;<br />
mso-hansi-theme-font:minor-latin;}<br />
--> <!--[endif]-->In this tutorial, I will go through the way to make a randomly picked quote generator work on a modular level. This is so it can be added to and updated, ported and reused without having to copy a bunch of files.</p>
<p class="MsoNormal">This technique is a pretty easy one. Let’s start off by making the “quote.php” file.</p>
<p class="MsoNormal"><span id="more-178"></span></p>
<div class="code">
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;?php</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> $num = Rand (0,4); </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">switch ($num)</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">{</span></p>
</div>
<p class="MsoNormal">This will cycle through 5 quotes that we will input in a minute. If you choose to add more cases, then you will need to change the “4” to the last case number you added. This is so it will cycle through all the quotes, not just the first 5.</p>
<p class="MsoNormal">Now we need to add the cases.</p>
<div class="code">
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">case 0:</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">echo &#8220;This is quote 1. &lt;p class=\”author\”&gt;-The author&lt;/p&gt;&#8221;;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">break; </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">case 1:</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">echo &#8221; is quot</span><span style="font-size: 10pt; line-height: 115%;">e 2. &lt;p class=\”author\”&gt;-The author &lt;/p&gt;&#8221;;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">break; </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">case 2:</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">echo &#8220;The is quote 3. &lt;p class=\”author\”&gt;-The author &lt;/p&gt;&#8221;;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">break; </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">case 3:</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">echo &#8221; is quote 4. &lt;p class=\”author\”&gt;-The author &lt;/p&gt;&#8221;;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">break; </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">case 4:</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">echo &#8221; is quote 5. &lt;p class=\”author\”&gt;-The author &lt;/p&gt;&#8221;;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">break;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">}</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">?&gt;</span></p>
</div>
<p class="MsoNormal">That is it for the “quote.php” file.</p>
<p class="MsoNormal">Full script</p>
<div class="code">
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;?php</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> $num = Rand (0,4); </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">switch ($num)</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">{</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">case 0:</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">echo &#8220;This is quote 1. &lt;p class=\”author\”&gt;-The author&lt;/p&gt;&#8221;;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">break; </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">case 1:</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">echo &#8221; is quote 2. &lt;p class=\”author\”&gt;-The author &lt;/p&gt;&#8221;;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">break; </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">case 2:</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">echo &#8220;The is quote 3. &lt;p class=\”author\”&gt;-The author &lt;/p&gt;&#8221;;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">break; </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">case 3:</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">echo &#8221; is quote 4. &lt;p class=\”author\”&gt;-The author &lt;/p&gt;&#8221;;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">break; </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">case 4:</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">echo &#8221; is quote 5. &lt;p class=\”author\”&gt;-The author &lt;/p&gt;&#8221;;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">break;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">}</span></p>
<p class="MsoNormal"><span style="color: #ffffff;"><span style="font-size: 10pt; line-height: 115%;">?&gt;</span></span></p>
</div>
<p class="MsoNormal">Now we will make a little page that it will go on. Nothing fancy, you can jazz it up as you see fit. Start off with the doctype, and all the required code to make the page valid.</p>
<div class="code">
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;head&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> &lt;title&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> The Random Quote Generator by Division Overlay</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> &lt;/title&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=utf-8&#8243; /&gt;</span></p>
</div>
<p class="MsoNormal">Now let’s give the page some basic styles, fonts, colors, etc.</p>
<div class="code">
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;style type=&#8221;text/css&#8221;&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">body {</span></p>
<p class="MsoNormal">< <span style="font-size: 10pt; line-height: 115%;"> background: url(bg.png);</p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> color: #dadada;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> font-family: segoe ui;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">}</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">#qblock {</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> background: #333333;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> width: 400px;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> height: 70px;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> padding: 5px;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> margin: 0 auto;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">}</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">.author {</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> color: #ffffff;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> font-size: 10px;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> font-family: georgia;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> font-style: italic;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> text-align: right;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">}</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;/style&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;/head&gt;</span></p>
</div>
<p class="MsoNormal">Now we can make a little box where the quotes from the “quote.php” file will be inputted in to the main file.</p>
<div class="code">
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;body&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;div id=&#8221;qblock&#8221;&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;?php include(&#8220;quote.php&#8221;); ?&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;/div&gt; </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;/body&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;/html&gt;</span></p>
</div>
<p class="MsoNormal">The Full main.php file is as followed.</p>
<div class="code">
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;head&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> &lt;title&gt;The Random Quote Generator by Division Overlay&lt;/title&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=utf-8&#8243; /&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;style type=&#8221;text/css&#8221;&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">body {</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> background: url(bg.png);</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> color: #dadada;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> font-family: segoe ui;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">}</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">#qblock {</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> background: #333333;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> width: 400px;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> height: 70px;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> padding: 5px;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> margin: 0 auto;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">}</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">.author {</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> color: #ffffff;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> font-size: 10px;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> font-family: georgia;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> font-style: italic;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> text-align: right;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">}</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;/style&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;/head&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;body&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;div id=&#8221;qblock&#8221;&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;?php include(&#8220;quote.php&#8221;); ?&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;/div&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;/body&gt;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%;">&lt;/html&gt;</span></p>
</div>
<p class="MsoNormal">This is how you would make a simple and nice little quote generator, to go on any site that supports php.</p>
<p class="MsoNormal"><a href="http://divisionoverlay.net/demo/index.php" target="_blank">Try the demo</a>.</p>
<p class="MsoNormal">Any questions, comments or concerns please do not hesitate to leave a note below. Thanks for your time.</p>
<p></mce></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.divisionoverlay.net/basic-php-quote-generator/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SiteGadget &#8211; coming soon</title>
		<link>http://blog.divisionoverlay.net/sitegadget-coming-soon</link>
		<comments>http://blog.divisionoverlay.net/sitegadget-coming-soon#comments</comments>
		<pubDate>Tue, 12 Aug 2008 21:45:08 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.divisionoverlay.net/?p=141</guid>
		<description><![CDATA[Hello, I am proud to announce SiteGadget, a project by Division Overlay. SiteGadget was started for the reason of distributing little gadgets or widgets that can be placed on any website. There will be all kinds of gadgets on there, and it will even be open to developers to submit your own for review, and [...]]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>I am proud to announce SiteGadget, a project by Division Overlay. SiteGadget was started for the reason of distributing little gadgets or widgets that can be placed on any website. There will be all kinds of gadgets on there, and it will even be open to developers to submit your own for review, and maybe be placed on the site.</p>
<p>At this point in development a lot of things are changing, so i cant give you a real good idea of what it will look like or how it will work, but I can show you the logo (subjective to change)</p>
<p><span id="more-141"></span></p>
<p><img class="alignnone size-full wp-image-142" title="Logo" src="http://blog.divisionoverlay.net/wp-content/uploads/2008/08/comingsoon.png" alt="" width="313" height="117" /></p>
<p>Also to come soon my business cards, here is a sneek peek of that <img class="alignnone size-full wp-image-143" title="cardfront" src="http://blog.divisionoverlay.net/wp-content/uploads/2008/08/cardfront.png" alt="" width="450" height="300" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.divisionoverlay.net/sitegadget-coming-soon/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Re-launch Blog edition</title>
		<link>http://blog.divisionoverlay.net/re-launch-blog-edition</link>
		<comments>http://blog.divisionoverlay.net/re-launch-blog-edition#comments</comments>
		<pubDate>Wed, 06 Aug 2008 16:45:03 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[news]]></category>

		<guid isPermaLink="false">http://blog.divisionoverlay.net/?p=116</guid>
		<description><![CDATA[Hello there! I&#8217;m glad to announce the re-launch of the blog section of Division Overlay. After discovering the first theme I made didn&#8217;t quite stretch like i wanted it to, I had to go back in the lab and whip up this one. Features Features I have implimented into this design: Current date and time [...]]]></description>
			<content:encoded><![CDATA[<p><img title="relaunch" src="http://blog.divisionoverlay.net/wp-content/uploads/2008/08/relaunch.png" alt="" width="500" height="57" /></p>
<p>Hello there! I&#8217;m glad to announce the re-launch of the blog section of Division Overlay. After discovering the first theme I made didn&#8217;t quite stretch like i wanted it to, I had to go back in the lab and whip up this one.</p>
<p><span id="more-116"></span></p>
<h3><span style="color: #10ee64;">Features</span></h3>
<p>Features I have implimented into this design:</p>
<ul>
<li>Current date and time</li>
<li>RSS subscribe</li>
<li>Style switcher</li>
<li>Pagination</li>
</ul>
<h3><span style="color: #10ee64;">Coming soon</span></h3>
<p>Features I plan on rolling out within the days and weeks to come.</p>
<ul>
<li>Dynamic archive</li>
<li>Dynamic recent posts</li>
<li>More full tutorials</li>
<li>More in-depth articles</li>
</ul>
<p>In conclusion, this theme is done but, i will be adding a lot more to it to make it better. On a side note, the previous theme that was up here will be converted into a free web template. You can expect that in within the week.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.divisionoverlay.net/re-launch-blog-edition/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Your Attention Please!</title>
		<link>http://blog.divisionoverlay.net/your-attention-please</link>
		<comments>http://blog.divisionoverlay.net/your-attention-please#comments</comments>
		<pubDate>Mon, 30 Jun 2008 04:40:51 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://divisionoverlay.net/?p=88</guid>
		<description><![CDATA[I have changed the theme on the site once again. I got a little bored with the old one. That is not why I&#8217;m writing this post though. I am telling you guys and gals that in a few days, maybe a week or so, I will be taking my blog offline for a while, [...]]]></description>
			<content:encoded><![CDATA[<p>I have changed the theme on the site once again. I got a little bored with the old one. That is not why I&#8217;m writing this post though. I am telling you guys and gals that in a few days, maybe a week or so, I will be taking my blog offline for a while, to fix up the proper site. You can always follow me on <a href="http://twitter.com/tjefford" target="_blank">Twitter</a>. I am on twitter most all day.</p>
<p>The new site will have everything, official contact info. A nice looking portfolio. A place where you can contact me and a place where you can request a quote for a design. The blog wont be on the front page any longer, but it will still be here.</p>
<p>I would also like to say, I will be writing on another blog, a separate blog. More or less an ideas blog. I&#8217;ll give more info on that as it develops.</p>
<p>Division Overlay will still be active during the time I pull the blog offline. It will have a few things on it, such as a little portfolio, maybe a few pics from my flickr. possibly a twitter feed, all that jazz.</p>
<p>Thank you for your understanding, and have a fantastic holiday.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.divisionoverlay.net/your-attention-please/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
