<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Designc's Blog</title>
	<atom:link href="http://designc.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://designc.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 04 Jun 2009 15:35:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='designc.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Designc's Blog</title>
		<link>http://designc.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://designc.wordpress.com/osd.xml" title="Designc&#039;s Blog" />
	<atom:link rel='hub' href='http://designc.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Working with PHP if Statements</title>
		<link>http://designc.wordpress.com/2009/06/04/working-with-php-if-statements/</link>
		<comments>http://designc.wordpress.com/2009/06/04/working-with-php-if-statements/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 15:34:53 +0000</pubDate>
		<dc:creator>designc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://designc.wordpress.com/?p=17</guid>
		<description><![CDATA[PHP if statments is some of the first a beginner learns about, there is a useful PHP Tutorial at Brugbart. Today i&#8217;m going to make a php if then else statement, to chose different CSS settings, based on choices the user makes. PHP is supported on most shared hosts, so its a good choice when [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designc.wordpress.com&amp;blog=6395735&amp;post=17&amp;subd=designc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>PHP <a href="http://brugbart.com/Tutorials/PHP-If-Then-Else-and-ElseIf-Statements_9.html">if statments</a> is some of the first a beginner learns about, there is a useful <a href="http://brugbart.com/Tutorials/PHP-Tutorial_21.html">PHP Tutorial</a> at Brugbart.</p>
<p>Today i&#8217;m going to make a <a href="http://brugbart.com/References/An-Introduction-to-CSS_6.html">php if then else</a> statement, to chose different <a href="http://brugbart.com/References/An-Introduction-to-CSS_6.html">CSS</a> settings, based on choices the user makes. PHP is supported on most shared hosts, so its a good choice when developing your website.</p>
<p>To create a <a href="http://brugbart.com/Tutorials/PHP-StyleSheet-Selector_13.html">stylesheet selector</a>, we can use the below code, provided by Brugbart.</p>
<p>&lt;style type=&#8221;text/css&#8221;&gt;<br />
&lt;?php session_start();</p>
<p>if ((isset($_GET['StyleSheet'])) &amp;&amp; (preg_match(&#8220;/^[\d]{1,2}$/D&#8221;, $_GET['StyleSheet']))) {</p>
<p>$_SESSION['styl'] = $_GET['StyleSheet']; } else {   // Default StyleSheet<br />
$_SESSION['styl'] = &#8217;1&#8242;; }<br />
echo &#8216;@import url(&#8220;StyleSheet&#8217; . $_SESSION['styl'] . &#8216;.css&#8221;);&#8217;;<br />
?&gt;<br />
&lt;/style&gt;</p>
<p>This allow me to select another style, simply by clicking a static <a href="http://brugbart.com/Tutorials/Images-and-Links-in-HTML_3.html">HTML link</a>. See below.<br />
&lt;a href=&#8221;?StyleSheet=1&#8243;&gt;StyleSheet 1&lt;/a&gt;</p>
<p>This technique can also be used to change single styles, such as the <a href="http://brugbart.com/References/CSS-Font-size-Property_16.html">font-size</a> as we are using the selector in the <a href="http://brugbart.com/References/HTML-Head-Tag_80.html">head</a> section of out page.</p>
<p>&lt;style type=&#8221;text/css&#8221;&gt;<br />
&lt;?php session_start();</p>
<p>if ((isset($_GET['StyleSheet'])) &amp;&amp; (preg_match(&#8220;/^[\d]{1,2}$/D&#8221;, $_GET['StyleSheet']))) {</p>
<p>$_SESSION['styl'] = $_GET['StyleSheet']; } else {   // Default StyleSheet<br />
$_SESSION['styl'] = &#8217;1&#8242;;</p>
<p>if ($_SESSION['styl'] == &#8217;1&#8242;) { echo &#8216;p { font-size: 2em; }&#8217;; }<br />
elseif ($_SESSION['styl'] == &#8217;1&#8242;) { echo &#8216;p { font-size: 4em; }&#8217;; }<br />
else { echo &#8216;p { font-size: 4em; }&#8217;; }</p>
<p>}<br />
?&gt;<br />
&lt;/style&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/designc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/designc.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/designc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/designc.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/designc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/designc.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/designc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/designc.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/designc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/designc.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/designc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/designc.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/designc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/designc.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designc.wordpress.com&amp;blog=6395735&amp;post=17&amp;subd=designc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://designc.wordpress.com/2009/06/04/working-with-php-if-statements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/feaf0590222cc9762bc6e22de6a4af46?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">designc</media:title>
		</media:content>
	</item>
		<item>
		<title>How to create a website</title>
		<link>http://designc.wordpress.com/2009/01/31/how-to-create-a-website/</link>
		<comments>http://designc.wordpress.com/2009/01/31/how-to-create-a-website/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 12:03:54 +0000</pubDate>
		<dc:creator>designc</dc:creator>
				<category><![CDATA[webdesign]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[websites]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://designc.wordpress.com/?p=5</guid>
		<description><![CDATA[Websites are made with HTML and CSS. HTML is a markup language used to markup the text in your documents, while css is being used to change the font size, background, width and height of your page. There are editors to help people create a website, these are often known as WYSIWYG (What You See [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designc.wordpress.com&amp;blog=6395735&amp;post=5&amp;subd=designc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Websites are made with HTML and CSS. <a href="http://www.brugbart.com/Tutorials/17/">HTML</a> is a markup language used to markup the text in your documents, while <a href="http://www.brugbart.com/Tutorials/18/">css</a> is being used to change the <a href="http://www.brugbart.com/References/16/">font size</a>, <a href="http://www.brugbart.com/References/59/">background</a>, <a href="http://www.brugbart.com/References/108/">width</a> and <a href="http://www.brugbart.com/References/111/">height</a> of your page.</p>
<p>There are editors to help people create a website, these are often known as WYSIWYG (What You See Is What You Get) editors, those editors do still require that you have at least basic understanding of HTML, unless you want to end up with invalid code.</p>
<p>You can even create a website in a text editor like notepad, so you don&#8217;t really need to buy one of the expensive editors, some of the best tools you can use are even free.</p>
<p>Links to HTML Tutorials:<br />
<a href="http://www.brugbart.com/Tutorials/1/">An Introduction to HTML</a><br />
<a href="http://www.brugbart.com/Tutorials/2/">Paragraphs and Headings in HTML</a><br />
<a href="http://www.brugbart.com/Tutorials/3/">Images and Links in HTML</a><br />
<a href="http://www.brugbart.com/Tutorials/4/">Tables in HTML</a><br />
<a href="http://www.brugbart.com/Tutorials/27/">Using SPAN and DIV for Layout in HTML</a><br />
<a href="http://www.brugbart.com/Tutorials/32/">Ordered and Unordered lists in HTML</a><br />
<a href="http://www.brugbart.com/Tutorials/8/">CSS Float Based Layouts</a><br />
PHP is a server-sided scripting language, used to create dynamic sites, it is usually used with MySQL which is a free database solution. There are some useful PHP Tutorials below.<br />
<a href="http://www.brugbart.com/Tutorials/12/">PHP Sessions</a><br />
<em><a href="http://www.brugbart.com/Tutorials/9/">if then else in php</a><br />
</em><a href="http://www.brugbart.com/Tutorials/14/">While and For Loops in PHP</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/designc.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/designc.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/designc.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/designc.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/designc.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/designc.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/designc.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/designc.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/designc.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/designc.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/designc.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/designc.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/designc.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/designc.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=designc.wordpress.com&amp;blog=6395735&amp;post=5&amp;subd=designc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://designc.wordpress.com/2009/01/31/how-to-create-a-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/feaf0590222cc9762bc6e22de6a4af46?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">designc</media:title>
		</media:content>
	</item>
	</channel>
</rss>
