<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Division Overlay Blog</title>
	
	<link>http://blog.divisionoverlay.net</link>
	<description />
	<lastBuildDate>Wed, 13 Jan 2010 05:35:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/DivisionOverlayBlog" /><feedburner:info uri="divisionoverlayblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>DivisionOverlayBlog</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Color as Communication</title>
		<link>http://feedproxy.google.com/~r/DivisionOverlayBlog/~3/K--lgHzukBQ/color-as-communication</link>
		<comments>http://blog.divisionoverlay.net/color-as-communication#comments</comments>
		<pubDate>Wed, 13 Jan 2010 05:34:15 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Inspirational]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[message]]></category>

		<guid isPermaLink="false">http://blog.divisionoverlay.net/?p=370</guid>
		<description><![CDATA[<div class="leftSmall"><img src="http://tycat.recoding.net/pics/colors/hold.png" alt="this place holder" />
</div>
<div class="rightSmall">
<p class="postText">
Detailed look into effectively communicating messages to users using colors. 
</p>
</div>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/owU9trj3DuHwhYtbIUFQOWYVITc/0/da"><img src="http://feedads.g.doubleclick.net/~a/owU9trj3DuHwhYtbIUFQOWYVITc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/owU9trj3DuHwhYtbIUFQOWYVITc/1/da"><img src="http://feedads.g.doubleclick.net/~a/owU9trj3DuHwhYtbIUFQOWYVITc/1/di" border="0" ismap="true"></img></a></p><style type="text/css">
.underline {
text-decoration: underline;
color: #333;
}
.center {
margin-left: 170px;
}
</style>
<div id="postInfoBox">
<div class="leftBig">
<img src="http://tycat.recoding.net/pics/colors/hold.png" alt="PlaceHolder" />
</div>
<div class="rightBig">
<a class="postTitle">Color as Communication</a><br />
<span class="smalls">on <a>January 12, 2010</a><span></p>
<p class="postText">
Detailed look into effectively communicating messages to users using colors.
</p>
<p></span></span></div>
</div>
<div class="clear"></div>
<h2 class="underline">Introduction</h2>
<p>The importance of color in design is not only important, but a deciding factor on the success of you and your works. Learning to master the art of color design is a tool that will greatly affect the future of your portfolio. In this post we will look into how you may communicate using colors, and represent different actions properly with color association. </p>
<h2 class="underline">Color Scheme Concept</h2>
<p>Color Scheme is defined as “an arrangement or pattern of colors or colored objects conceived of as forming an integrated whole”(Cite). Creating a color scheme is one of the first steps in designing. This may be a well thought out process or just mixing and matching colors together, which ever path you take, a color scheme is made.<br />
In web design, there are many ways to go about making a color scheme for yourself. Choosing a base color would be the fist step. Usually a solid, dark color, such as black, or charcoal gray, or a subtle light color such as white or arctic blue as brief examples.</p>
<p><a href="http://tycat.recoding.net/pics/colors/dark-light.png" class="pop"><img src="http://tycat.recoding.net/pics/colors/dark-light.png" alt="" width="400" class="center" /></a></p>
<p>Starting with a basic base color, gives you range to use more vibrant or dull colors on your secondary color. The secondary color in your design is best used in logos, headers, other images and some action buttons. Secondary colors are meant to be flashy. Bright, colorful colors are commonly used on dark base colors, although vibrant colors are often used on light base colors as well.<br />
The third color of color schemes in web design are often text or content boxes. Typically text is black, as it is easily readable on a light background. When using a dark base, and the text is placed without a light container, it is difficult for readability. On a similar note, the base color may create a static display for content in the same color, confusing the user.</p>
<h2 class="underline">Understanding Effective Color Implementation</h2>
<p>Becoming effective at color implementation will provide you with the skill to grab the attention of the audience, manipulating their focus to present the content you want the user to see using color schemes. Combined with the ideas from above, using color schemes, I have complied a few examples of attention grabbing web sites. </p>
<p><a href="http://tycat.recoding.net/pics/colors/color-attraction.png" class="pop"><img src="http://tycat.recoding.net/pics/colors/color-attraction.png" alt="" width="400" class="center" /></a><br />
<br />
<a href="http://tycat.recoding.net/pics/colors/color-attraction2.png" class="pop"><img src="http://tycat.recoding.net/pics/colors/color-attraction2.png" alt="" width="400" class="center" /></a></p>
<p>Shown are 4 examples of excellent color combinations and implementation of color schemes.</p>
<h2 class="underline">Common Colors Uses For Events</h2>
<p>When you approach a stop sign, you stop. When you see a green turn signal in your lane, you proceed to turn. When you see blinking orange lights on the car a head, you slow down as cautious of their turn. All around us we use colors and associate them with alerts such as stop, go, caution. We do the same thing on computers. Errors, save confirmations, important information alerts, etc.<br />
Especially in web applications it is crucial to present the user with the correct message if there is a need to address the user. Is there an error? Errors are a problem developers wish magically fixed themselves, but designers have to anticipate and alert users if there is a problem. Perhaps you have an email application and you click send, but nothing happens. Do you click send again, possibly flooding the recipients inbox with duplicate messages? If there was a clear message that showed the user the message had been sent successively. Maybe you would like to tell a user, for their security to change their password, but they overlook the message because it blends in.<br />
To fix these issues we can use color to grab the users focus, and communicate the proper message alert.<br />
Red, stop, delete, error, something is wrong. When a user views a red prompt, they may have a certain level of panic, and frustration. Maybe their document has not been saved due to an error, or their password is wrong during a log in. Below are a few great uses of red as alerts.</p>
<p><a href="http://tycat.recoding.net/pics/colors/error1.png" class="pop"><img src="http://tycat.recoding.net/pics/colors/error1.png" alt="" width="400" class="center" /></a><br />
<br />
<a href="http://tycat.recoding.net/pics/colors/error2.png" class="pop"><img src="http://tycat.recoding.net/pics/colors/error2.png" alt="" width="400" class="center" /></a></p>
<p>Green, go, save, success, Everything is fine. Coming across a green prompt a user may feel secure, and achieved. Documents have been saved, messages sent, registration complete. Below are two examples of fantastic uses of green as alerts.</p>
<p><a href="http://tycat.recoding.net/pics/colors/success1.png" class="pop"><img src="http://tycat.recoding.net/pics/colors/success1.png" alt="" width="400" class="center" /></a><br />
<br />
<a href="http://tycat.recoding.net/pics/colors/success2.png" class="pop"><img src="http://tycat.recoding.net/pics/colors/success2.png" alt="" width="400" class="center" /></a></p>
<p>Yellow/Orange, caution, new information, confirmation, attention requested. When presented with an alert in this color, a user may feel informed. The use of these alerts are vast, most common are informing users of new content and warning of security issues. Below are several examples of yellow/orange as alerts.</p>
<p><a href="http://tycat.recoding.net/pics/colors/alert1.png" class="pop"><img src="http://tycat.recoding.net/pics/colors/alert1.png" alt="" width="400" class="center" /></a><br />
<br />
<a href="http://tycat.recoding.net/pics/colors/alert2.png" class="pop"><img src="http://tycat.recoding.net/pics/colors/alert2.png" alt="" width="400" class="center" /></a><br />
<br />
<a href="http://tycat.recoding.net/pics/colors/alert3.png" class="pop"><img src="http://tycat.recoding.net/pics/colors/alert3.png" alt="" width="400" class="center" /></a></p>
<h2 class="underline">When and What to Communicate With Color</h2>
<p>To further explain what to communicate with the colors for alerts, it is necessary to know a few key things about the users. In a web application where the users can add, delete, and modify any data, there is significant need to use the correct colors to communicate an alert message. If a user is greeted with a new alert, quickly judging the color before reading the message will allow the user to be prepared to take the action needed to fix the alert. It is important to use colors to communicate messages to the users, as it will substantially reduce confusion on your design. </p>
<p>What kinds of events should be alerted?<br />
Any form of error that a website can encounter, including (but not limited to)</p>
<ul>
<li>404 page</li>
<li>Database connection errors</li>
<li>Login errors</li>
<li>Registration errors</li>
<li>Delete confirmation</li>
<li>Delete success</li>
<li>Close application</li>
</ul>
<p>Anytime a user has successively created, saved, modified, or needs to move on, including (but not limited to)</p>
<ul>
<li>Saving</li>
<li>Editing</li>
<li>Creating</li>
<li>Updating</li>
<li>Adding</li>
<li>Moving to next(button)</li>
</ul>
<p>Any type of important information that is relevant to users.</p>
<ul>
<li>Security precautions</li>
<li>New features</li>
<li>New items</li>
</ul>
<h2 class="underline">In Conclusion</h2>
<p>Using colors effectively can greatly increase a users understanding of the messages you are communicating to them. Taking into consideration schemes, different alerts, and implementation of the colors best for each, you can create a user interface with minimal confusion.</p>
<h2 class="underline">Resources</h2>
<p>Here are a few tools and websites to aid you in designing with colors.<br />
<a href="http://www.colourlovers.com/">COLOURlovers</a><br />
<a href="http://kuler.adobe.com/">Kuler by Adobe</a><br />
<a href="http://www.pagetutor.com/common/bgcolors1536.png">Hex Color Chart</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.divisionoverlay.net/color-as-communication/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://blog.divisionoverlay.net/color-as-communication</feedburner:origLink></item>
		<item>
		<title>Poll: New Article Topics</title>
		<link>http://feedproxy.google.com/~r/DivisionOverlayBlog/~3/aaEHKAVuNQs/poll-new-article-topics</link>
		<comments>http://blog.divisionoverlay.net/poll-new-article-topics#comments</comments>
		<pubDate>Thu, 07 Jan 2010 06:56:47 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Poll]]></category>

		<guid isPermaLink="false">http://blog.divisionoverlay.net/?p=362</guid>
		<description><![CDATA[<div class="leftSmall"><img src="http://tycat.recoding.net/holder/poll.png" alt="this place holder" />
</div>
<div class="rightSmall">
<p class="postText">
Be a part of Division Overlay's future! Fill out our quick poll on what type of new blog posts to write more of, it only takes seconds.  
</p>
</div>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/mceZhuB4V9puSTcQWeigWoj9XcY/0/da"><img src="http://feedads.g.doubleclick.net/~a/mceZhuB4V9puSTcQWeigWoj9XcY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/mceZhuB4V9puSTcQWeigWoj9XcY/1/da"><img src="http://feedads.g.doubleclick.net/~a/mceZhuB4V9puSTcQWeigWoj9XcY/1/di" border="0" ismap="true"></img></a></p><div id="postInfoBox">
<div class="leftBig">
<img src="http://tycat.recoding.net/holder/poll.png" alt="PlaceHolder" />
</div>
<div class="rightBig">
<a class="postTitle">Poll: New Article Topics</a><br />
<span class="smalls">on <a>January 7, 2010</a><span></p>
<p class="postText">
Be a part of Division Overlay&#8217;s future! Fill out our quick poll on what type of new blog posts to write more of, it only takes seconds..
</p>
<p></span></span></div>
</div>
<div class="clear"></div>
<p>As Division Overlay begins a new year, working feverishly on getting Echo Stream together <span class="small">(More Information soon)</span>. It seems as though our blog has felt much neglect as of late. So to make up for an empty feed reader on our part, we would like to know what kind of topics you would like us to spend a little more time on.  Please take a quick moment to answer our one question poll below to provide us will valuable feedback.</p>
<div class="code">Note: There is a poll embedded within this post, please visit the site to participate in this post's poll.</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.divisionoverlay.net/poll-new-article-topics/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.divisionoverlay.net/poll-new-article-topics</feedburner:origLink></item>
		<item>
		<title>Creating a basic View Counter using PHP and MySQL</title>
		<link>http://feedproxy.google.com/~r/DivisionOverlayBlog/~3/MNHFKjOOxyU/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[
<p><a href="http://feedads.g.doubleclick.net/~a/Xb0Vs-4M5CxPQsBayPZxbEr-A48/0/da"><img src="http://feedads.g.doubleclick.net/~a/Xb0Vs-4M5CxPQsBayPZxbEr-A48/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Xb0Vs-4M5CxPQsBayPZxbEr-A48/1/da"><img src="http://feedads.g.doubleclick.net/~a/Xb0Vs-4M5CxPQsBayPZxbEr-A48/1/di" border="0" ismap="true"></img></a></p><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 &#8216;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 &#8216;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>2</slash:comments>
		<feedburner:origLink>http://blog.divisionoverlay.net/creating-a-basic-view-counter-using-php-and-mysql</feedburner:origLink></item>
		<item>
		<title>Happy Holidays!</title>
		<link>http://feedproxy.google.com/~r/DivisionOverlayBlog/~3/OEKhqWZKcKE/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[
<p><a href="http://feedads.g.doubleclick.net/~a/XgXGK0Ft_fkaXci2msPVlOgEij4/0/da"><img src="http://feedads.g.doubleclick.net/~a/XgXGK0Ft_fkaXci2msPVlOgEij4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/XgXGK0Ft_fkaXci2msPVlOgEij4/1/da"><img src="http://feedads.g.doubleclick.net/~a/XgXGK0Ft_fkaXci2msPVlOgEij4/1/di" border="0" ismap="true"></img></a></p><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>0</slash:comments>
		<feedburner:origLink>http://blog.divisionoverlay.net/happy-holidays</feedburner:origLink></item>
		<item>
		<title>Updated Engine and Theme</title>
		<link>http://feedproxy.google.com/~r/DivisionOverlayBlog/~3/KdV08DAdqJQ/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[
<p><a href="http://feedads.g.doubleclick.net/~a/Vg3EWibSltLe7isug6R8VBcyiFo/0/da"><img src="http://feedads.g.doubleclick.net/~a/Vg3EWibSltLe7isug6R8VBcyiFo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Vg3EWibSltLe7isug6R8VBcyiFo/1/da"><img src="http://feedads.g.doubleclick.net/~a/Vg3EWibSltLe7isug6R8VBcyiFo/1/di" border="0" ismap="true"></img></a></p><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>
		<feedburner:origLink>http://blog.divisionoverlay.net/updated-engine-and-theme</feedburner:origLink></item>
		<item>
		<title>Transforming Elements in XML using XSLT</title>
		<link>http://feedproxy.google.com/~r/DivisionOverlayBlog/~3/gEwkbKBI4IU/transforming-elements-in-xml-using-xslt</link>
		<comments>http://blog.divisionoverlay.net/transforming-elements-in-xml-using-xslt#comments</comments>
		<pubDate>Wed, 28 Oct 2009 09:17:05 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Gallery]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://blog.divisionoverlay.net/?p=263</guid>
		<description><![CDATA[<div class="leftSmall"><img src="http://tycat.recoding.net/holder/xslt.png" alt="this place holder" />
</div>
<div class="rightSmall">
<p class="postText">
Video screen cast guiding step by step how to use XMLSpy to transform an XML file into an HTML file using XSLT transformation.
</p>
</div>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/7DkJZLEc0ZqeHNwBoPf2GXoN-hY/0/da"><img src="http://feedads.g.doubleclick.net/~a/7DkJZLEc0ZqeHNwBoPf2GXoN-hY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/7DkJZLEc0ZqeHNwBoPf2GXoN-hY/1/da"><img src="http://feedads.g.doubleclick.net/~a/7DkJZLEc0ZqeHNwBoPf2GXoN-hY/1/di" border="0" ismap="true"></img></a></p><p style="text-align: center;"><img class="aligncenter" src="http://tycat.recoding.net/xslt/heading.png" alt="Transforming elements in XML using XSLT" width="550" height="200" /></p>
<p style="text-align: center;"><span id="more-263"></span></p>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;">As a student in an XML class I am learning a lot of things that the language can do. Something I thought was very interesting and easy to learn is using XSLT to transform an existing XML document into either another XML document, text file, or an html file.</p>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;">I made a little screen cast to show how its done. There is no audio in this video. It is preferred you view the video in full screen (to see all the text and such).</p>
<p style="margin-bottom: 0in;">
<p><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } 		A:link { so-language: zxx } --></p>
<p style="margin-bottom: 0in;">
<p><object style="width: 425px; height: 344px;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/jXuIuFqaN6E&amp;hl=en&amp;fs=1" /><embed style="width: 425px; height: 344px;" type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/jXuIuFqaN6E&amp;hl=en&amp;fs=1"></embed></object></p>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;">Just as well, I added a “gallery” of the title screens just in case they went to fast for you, or you just wanted to review them.</p>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;"><a href="http://tycat.recoding.net/xslt" target="_blank">View Title Screen Gallery</a></p>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;">I have also linked the twitterTransform.xslt file for a reference. I did not add my RSS feed as you should be able to access your own very easily. I also did not link the output file as you will be generating your own with the transformation.</p>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;"><a href="http://tycat.recoding.net/xslt/twitterTransform.xslt">twitterTransform.xslt</a></p>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;">In this tutorial I use:</p>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;">XMLSpy (<span style="color: #000080;"><span lang="zxx"><span style="text-decoration: underline;"><a href="https://shop.altova.com/category.asp?category_name=XMLSPY">https://shop.altova.com/category.asp?category_name=XMLSPY</a></span></span></span>)</p>
<p style="margin-bottom: 0in;">You can use the trial and purchase if you like it as much as I do.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.divisionoverlay.net/transforming-elements-in-xml-using-xslt/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.divisionoverlay.net/transforming-elements-in-xml-using-xslt</feedburner:origLink></item>
		<item>
		<title>28 album covers to get inspired by</title>
		<link>http://feedproxy.google.com/~r/DivisionOverlayBlog/~3/O3TiZ80k4gw/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><a href="http://feedads.g.doubleclick.net/~a/foeKkhQ0esog_xLMwaWIuUe8ve4/0/da"><img src="http://feedads.g.doubleclick.net/~a/foeKkhQ0esog_xLMwaWIuUe8ve4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/foeKkhQ0esog_xLMwaWIuUe8ve4/1/da"><img src="http://feedads.g.doubleclick.net/~a/foeKkhQ0esog_xLMwaWIuUe8ve4/1/di" border="0" ismap="true"></img></a></p><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>0</slash:comments>
		<feedburner:origLink>http://blog.divisionoverlay.net/28-album-covers-to-get-inspired-by</feedburner:origLink></item>
		<item>
		<title>Creating a basic email form using PHP</title>
		<link>http://feedproxy.google.com/~r/DivisionOverlayBlog/~3/oO_yiCFB8Gc/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[
<p><a href="http://feedads.g.doubleclick.net/~a/MOIAPDxhJknrXhOP2GLitmz2SbQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/MOIAPDxhJknrXhOP2GLitmz2SbQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/MOIAPDxhJknrXhOP2GLitmz2SbQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/MOIAPDxhJknrXhOP2GLitmz2SbQ/1/di" border="0" ismap="true"></img></a></p><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>5</slash:comments>
		<feedburner:origLink>http://blog.divisionoverlay.net/creating-a-basic-email-form-using-php</feedburner:origLink></item>
		<item>
		<title>Welcome Back</title>
		<link>http://feedproxy.google.com/~r/DivisionOverlayBlog/~3/dPaakQ6jquU/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 of a [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/FrJoAtwO8R5_DpAQmhV0AIurZqw/0/da"><img src="http://feedads.g.doubleclick.net/~a/FrJoAtwO8R5_DpAQmhV0AIurZqw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/FrJoAtwO8R5_DpAQmhV0AIurZqw/1/da"><img src="http://feedads.g.doubleclick.net/~a/FrJoAtwO8R5_DpAQmhV0AIurZqw/1/di" border="0" ismap="true"></img></a></p><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>
		<feedburner:origLink>http://blog.divisionoverlay.net/welcome-back-2</feedburner:origLink></item>
		<item>
		<title>Basic PHP quote generator</title>
		<link>http://feedproxy.google.com/~r/DivisionOverlayBlog/~3/qvwsbQf-4f8/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 [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/kng91bmqGtw0ZawmpR3UZONMn74/0/da"><img src="http://feedads.g.doubleclick.net/~a/kng91bmqGtw0ZawmpR3UZONMn74/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/kng91bmqGtw0ZawmpR3UZONMn74/1/da"><img src="http://feedads.g.doubleclick.net/~a/kng91bmqGtw0ZawmpR3UZONMn74/1/di" border="0" ismap="true"></img></a></p><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>
		<feedburner:origLink>http://blog.divisionoverlay.net/basic-php-quote-generator</feedburner:origLink></item>
	</channel>
</rss>
