<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Daniel Dumas &#187; PHP Tutorials</title>
	<atom:link href="http://danieldumas.com/category/php-tutorials/feed" rel="self" type="application/rss+xml" />
	<link>http://danieldumas.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 30 Apr 2012 06:16:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>PHP Auto-Increment and Auto-Decrement Operators</title>
		<link>http://danieldumas.com/php-auto-increment-and-auto-decrement-operators.php</link>
		<comments>http://danieldumas.com/php-auto-increment-and-auto-decrement-operators.php#comments</comments>
		<pubDate>Mon, 30 Apr 2012 06:16:47 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Tutorials]]></category>

		<guid isPermaLink="false">http://danieldumas.com/?p=1225</guid>
		<description><![CDATA[The auto-increment operator designed to automatically increment the value of the variable it is attached to by 1. It is represented by a double addition symbol (++). To see it in action, run the following script: &#60;?php // define $total as 10 $total = 10; // increment it $total++; // $total is now 11 ?&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>The auto-increment operator designed to automatically increment the value of the variable it is attached to by 1. It is represented by a double addition symbol (++). To see it in action, run the following script:</p>
<pre name="code" class="php">

&lt;?php
// define $total as 10
$total = 10;
// increment it
$total++;
// $total is now 11

?&gt;
</pre>
<p>  Thus, &lt;?php $total++; ?> is functionally equivalent to &lt;?php<br />
$total = $total + 1; ?>.<br />
  There&#8217;s also a corresponding auto-decrement operator (&ndash;&ndash;), which does exactly the opposite:</p>
<pre name="code" class="php">

&lt;?php
// define $total as 10
$total = 10;
// decrement it
$total--;
// $total is now 9

?&gt;
</pre>
<p>  These operators are frequently used in loops to update the value of the loop counter.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://danieldumas.com/php-auto-increment-and-auto-decrement-operators.php&amp;t=PHP+Auto-Increment+and+Auto-Decrement+Operators" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://danieldumas.com/php-auto-increment-and-auto-decrement-operators.php&amp;feed=comments-rss2" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://danieldumas.com/php-auto-increment-and-auto-decrement-operators.php&amp;title=PHP+Auto-Increment+and+Auto-Decrement+Operators" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://danieldumas.com/php-auto-increment-and-auto-decrement-operators.php&amp;title=PHP+Auto-Increment+and+Auto-Decrement+Operators" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://danieldumas.com/php-auto-increment-and-auto-decrement-operators.php&amp;title=PHP+Auto-Increment+and+Auto-Decrement+Operators&amp;srcUrl=http://danieldumas.com/php-auto-increment-and-auto-decrement-operators.php&amp;srcTitle=PHP+Auto-Increment+and+Auto-Decrement+Operators&amp;snippet=The%20auto-increment%20operator%20designed%20to%20automatically%20increment%20the%20value%20of%20the%20variable%20it%20is%20attached%20to%20by%201.%20It%20is%20represented%20by%20a%20double%20addition%20symbol%20%28%2B%2B%29.%20To%20see%20it%20in%20action%2C%20run%20the%20following%20script%3A%0D%0A%0D%0A%0D%0A%0D%0A%26lt%3B%3Fphp%0D%0A%2F%2F%20define%20%24total%20as%2010%0D%0A%24total%20%3D%2010%3B%0D%0A%2F%2F%20increment%20it%0D%0A%24total%2B%2B%3B%0D%0A%2F%2F%20%24" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://danieldumas.com/php-auto-increment-and-auto-decrement-operators.php&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://danieldumas.com/php-auto-increment-and-auto-decrement-operators.php&amp;title=PHP+Auto-Increment+and+Auto-Decrement+Operators" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://danieldumas.com/php-auto-increment-and-auto-decrement-operators.php&amp;title=PHP+Auto-Increment+and+Auto-Decrement+Operators" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://danieldumas.com/php-auto-increment-and-auto-decrement-operators.php" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PHP+Auto-Increment+and+Auto-Decrement+Operators+-+http://bit.ly/IkyYdx&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://danieldumas.com/php-auto-increment-and-auto-decrement-operators.php&amp;submitHeadline=PHP+Auto-Increment+and+Auto-Decrement+Operators&amp;submitSummary=The%20auto-increment%20operator%20designed%20to%20automatically%20increment%20the%20value%20of%20the%20variable%20it%20is%20attached%20to%20by%201.%20It%20is%20represented%20by%20a%20double%20addition%20symbol%20%28%2B%2B%29.%20To%20see%20it%20in%20action%2C%20run%20the%20following%20script%3A%0D%0A%0D%0A%0D%0A%0D%0A%26lt%3B%3Fphp%0D%0A%2F%2F%20define%20%24total%20as%2010%0D%0A%24total%20%3D%2010%3B%0D%0A%2F%2F%20increment%20it%0D%0A%24total%2B%2B%3B%0D%0A%2F%2F%20%24&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdanieldumas.com%2Fphp-auto-increment-and-auto-decrement-operators.php&amp;t=PHP+Auto-Increment+and+Auto-Decrement+Operators" rel="nofollow" class="external" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-yahoomail">
			<a href="http://compose.mail.yahoo.com/?Subject=PHP+Auto-Increment+and+Auto-Decrement+Operators&amp;body=Link: http://danieldumas.com/php-auto-increment-and-auto-decrement-operators.php (sent via shareaholic)%0D%0A%0D%0A----%0D%0A The%20auto-increment%20operator%20designed%20to%20automatically%20increment%20the%20value%20of%20the%20variable%20it%20is%20attached%20to%20by%201.%20It%20is%20represented%20by%20a%20double%20addition%20symbol%20%28%2B%2B%29.%20To%20see%20it%20in%20action%2C%20run%20the%20following%20script%3A%0D%0A%0D%0A%0D%0A%0D%0A%26lt%3B%3Fphp%0D%0A%2F%2F%20define%20%24total%20as%2010%0D%0A%24total%20%3D%2010%3B%0D%0A%2F%2F%20increment%20it%0D%0A%24total%2B%2B%3B%0D%0A%2F%2F%20%24" rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://danieldumas.com/php-auto-increment-and-auto-decrement-operators.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Logical Operators</title>
		<link>http://danieldumas.com/php-logical-operators.php</link>
		<comments>http://danieldumas.com/php-logical-operators.php#comments</comments>
		<pubDate>Thu, 08 Mar 2012 19:42:39 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[Logical AND]]></category>
		<category><![CDATA[Logical NOT]]></category>
		<category><![CDATA[logical operators]]></category>
		<category><![CDATA[Logical OR]]></category>
		<category><![CDATA[Logical XOR]]></category>
		<category><![CDATA[PHP Logical Operators]]></category>

		<guid isPermaLink="false">http://danieldumas.com/?p=1220</guid>
		<description><![CDATA[Hey guys! welcome me back! yes, i am finally back again. i been away for a long time, but i am now back again in the blogosphere to share some PHP tutorials, tips and other web development ideas, tips and tricks etc. for today i will discuss about PHP Logical Operators. To link together related [...]]]></description>
			<content:encoded><![CDATA[<p>Hey guys! welcome me back! yes, i am finally back again. i been away for a long time, but i am now back again in the blogosphere to share some PHP tutorials, tips and other web development ideas, tips and tricks etc.</p>
<p>for today i will discuss about <strong><a href="http://danieldumas.com/php-logical-operators.php">PHP Logical Operators</a></strong>.</p>
<p>To link together related conditions in a simple and elegant manner, we can use <span id="more-1220"></span>one of PHP&#8217;s four <strong>Logical Operators</strong> -logical <strong>AND</strong>, logical <strong>OR</strong>, logical <strong>XOR</strong>, and logical <strong>NOT</strong>-as illustrated in the following listing.</p>
<pre class="php" name="code">

&lt;?php
// define some variables
$username = 'daniel';
$password = 'dumas';
$saveCookie = 1;
$status = 1;

// logical AND
// returns true if all conditions are true
// returns true here
$result = (($username == 'daniel') &amp;&amp; ($password == 'dumas'));

// logical OR
// returns true if any conditions is true
// returns false here
$result = (($status &lt; 1) || ($saveCookie == 0)); 

// logical NOT
// returns true if the condition is false and vice-versa
// returns false
$result = !($saveCookie == 1); 

// logical XOR
// returns true if any of the two conditions are true
// returns false if both conditions are true
// returns false here

$result = (($status == 1) xor ($saveCookie == 1));

?&gt;</pre>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://danieldumas.com/php-logical-operators.php&amp;t=PHP+Logical+Operators" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://danieldumas.com/php-logical-operators.php&amp;feed=comments-rss2" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://danieldumas.com/php-logical-operators.php&amp;title=PHP+Logical+Operators" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://danieldumas.com/php-logical-operators.php&amp;title=PHP+Logical+Operators" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://danieldumas.com/php-logical-operators.php&amp;title=PHP+Logical+Operators&amp;srcUrl=http://danieldumas.com/php-logical-operators.php&amp;srcTitle=PHP+Logical+Operators&amp;snippet=Hey%20guys%21%20welcome%20me%20back%21%20yes%2C%20i%20am%20finally%20back%20again.%20i%20been%20away%20for%20a%20long%20time%2C%20but%20i%20am%20now%20back%20again%20in%20the%20blogosphere%20to%20share%20some%20PHP%20tutorials%2C%20tips%20and%20other%20web%20development%20ideas%2C%20tips%20and%20tricks%20etc.%0D%0A%0D%0Afor%20today%20i%20will%20discuss%20about%20PHP%20Logical%20Operators.%0D%0A%0D%0ATo%20link%20together%20relate" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://danieldumas.com/php-logical-operators.php&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://danieldumas.com/php-logical-operators.php&amp;title=PHP+Logical+Operators" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://danieldumas.com/php-logical-operators.php&amp;title=PHP+Logical+Operators" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://danieldumas.com/php-logical-operators.php" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PHP+Logical+Operators+-+http://bit.ly/zuXD7f&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://danieldumas.com/php-logical-operators.php&amp;submitHeadline=PHP+Logical+Operators&amp;submitSummary=Hey%20guys%21%20welcome%20me%20back%21%20yes%2C%20i%20am%20finally%20back%20again.%20i%20been%20away%20for%20a%20long%20time%2C%20but%20i%20am%20now%20back%20again%20in%20the%20blogosphere%20to%20share%20some%20PHP%20tutorials%2C%20tips%20and%20other%20web%20development%20ideas%2C%20tips%20and%20tricks%20etc.%0D%0A%0D%0Afor%20today%20i%20will%20discuss%20about%20PHP%20Logical%20Operators.%0D%0A%0D%0ATo%20link%20together%20relate&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdanieldumas.com%2Fphp-logical-operators.php&amp;t=PHP+Logical+Operators" rel="nofollow" class="external" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-yahoomail">
			<a href="http://compose.mail.yahoo.com/?Subject=PHP+Logical+Operators&amp;body=Link: http://danieldumas.com/php-logical-operators.php (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Hey%20guys%21%20welcome%20me%20back%21%20yes%2C%20i%20am%20finally%20back%20again.%20i%20been%20away%20for%20a%20long%20time%2C%20but%20i%20am%20now%20back%20again%20in%20the%20blogosphere%20to%20share%20some%20PHP%20tutorials%2C%20tips%20and%20other%20web%20development%20ideas%2C%20tips%20and%20tricks%20etc.%0D%0A%0D%0Afor%20today%20i%20will%20discuss%20about%20PHP%20Logical%20Operators.%0D%0A%0D%0ATo%20link%20together%20relate" rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://danieldumas.com/php-logical-operators.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Stylesheet Switcher using PHP</title>
		<link>http://danieldumas.com/css-stylesheet-switcher-using-php.php</link>
		<comments>http://danieldumas.com/css-stylesheet-switcher-using-php.php#comments</comments>
		<pubDate>Tue, 18 Jan 2011 19:54:53 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[Tips and Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://danieldumas.com/?p=1101</guid>
		<description><![CDATA[Hi everyone! today I&#8217;ll teach you how to separate CSS stylesheet for your website or web projects. there are many ways to do this but I am going to use PHP for this tutorial. As a Web Developer or Web Designer, it is important that website&#8217;s we develop are working on all major browsers, or [...]]]></description>
			<content:encoded><![CDATA[<p>Hi everyone! today I&#8217;ll teach you how to separate CSS stylesheet for your website or web projects. there are many ways to do this but I am going to use PHP for this tutorial.</p>
<p>As a <a href="http://danieldumas.com/freelance-web-developer-philippines">Web Developer</a> or Web Designer, it is important that website&#8217;s we develop are working on all major browsers, or on all(old or new) browsers if possible. but some browsers (specially the old one&#8217;s) has their own specific way<span id="more-1101"></span> of translating or handling css /style directions.</p>
<p>And also sometimes we need to show or hide some specific elements for some browsers or browser versions.</p>
<p>for situations like the above, stylesheet separation for specific browsers can help.  look at the codes below.</p>
<pre class="php" name="code">&lt;?php
if(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 6")){
?&gt;
&lt;link rel="stylesheet" type="text/css" href="/css/ie6.css" /&gt;
&lt;?php
} elseif(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 7")) {
?&gt;
&lt;link rel="stylesheet" type="text/css" href="/css/ie7.css" /&gt;
&lt;?php
} elseif(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 8")) {
?&gt;
&lt;link rel="stylesheet" type="text/css" href="/css/ie8.css" /&gt;
&lt;?php
} elseif(strstr($_SERVER['HTTP_USER_AGENT'], "Firefox")) {
?&gt;
&lt;link rel="stylesheet" type="text/css" href="/css/ff.css" /&gt;
&lt;?php
} elseif(strstr($_SERVER['HTTP_USER_AGENT'], "Chrome")){
?&gt;
&lt;link rel="stylesheet" type="text/css" href="/css/chr.css" /&gt;
&lt;?php
} elseif(strstr($_SERVER['HTTP_USER_AGENT'], "Safari")){
?&gt;
&lt;link rel="stylesheet" type="text/css" href="/css/saf.css" /&gt;
&lt;?php
}
?&gt;</pre>
<p>what this codes do is detect the users browser then prints the specific stylesheet for that browser. you can put this code directly below your main CSS stylesheet, because the primary use of this code is to override the main CSS settings. so for example a <strong>div </strong>is showing differently in IE6 browser, you can just include the style direction of this div into the ie6.css, so when a user browse your website using IE6 browser, the main CSS setting for this div will be override by ie6.css.</p>
<p>the code above can also be used on a wordpress blog or wordpress based sites, you just need to add your wordpress site&#8217;s template url to the CSS path. please look at the code below.</p>
<pre class="php" name="code">&lt;?php
if(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 6")){
?&gt;
&lt;link rel="stylesheet" type="text/css" href="&lt;?php bloginfo('template_url'); ?&gt;/css/ie6.css" /&gt;
&lt;?php
} elseif(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 7")) {
?&gt;
&lt;link rel="stylesheet" type="text/css" href="&lt;?php bloginfo('template_url'); ?&gt;/css/ie7.css" /&gt;
&lt;?php
} elseif(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 8")) {
?&gt;
&lt;link rel="stylesheet" type="text/css" href="&lt;?php bloginfo('template_url'); ?&gt;/css/ie8.css" /&gt;
&lt;?php
} elseif(strstr($_SERVER['HTTP_USER_AGENT'], "Firefox")) {
?&gt;
&lt;link rel="stylesheet" type="text/css" href="&lt;?php bloginfo('template_url'); ?&gt;/css/ff.css" /&gt;
&lt;?php
} elseif(strstr($_SERVER['HTTP_USER_AGENT'], "Chrome")){
?&gt;
&lt;link rel="stylesheet" type="text/css" href="&lt;?php bloginfo('template_url'); ?&gt;/css/chr.css" /&gt;
&lt;?php
} elseif(strstr($_SERVER['HTTP_USER_AGENT'], "Safari")){
?&gt;
&lt;link rel="stylesheet" type="text/css" href="&lt;?php bloginfo('template_url'); ?&gt;/css/saf.css" /&gt;
&lt;?php
}
?&gt;</pre>
<p>You can insert this code into your wordpress theme&#8217;s header file (header.php), directly below the main CSS declaration:</p>
<pre name="code" class="php">
&lt;link rel="stylesheet" href="&lt;?php bloginfo('stylesheet_url'); ?&gt;" type="text/css" media="screen" /&gt;
</pre>
<p>Enjoy! please share.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://danieldumas.com/css-stylesheet-switcher-using-php.php&amp;t=CSS+Stylesheet+Switcher+using+PHP" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://danieldumas.com/css-stylesheet-switcher-using-php.php&amp;feed=comments-rss2" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://danieldumas.com/css-stylesheet-switcher-using-php.php&amp;title=CSS+Stylesheet+Switcher+using+PHP" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://danieldumas.com/css-stylesheet-switcher-using-php.php&amp;title=CSS+Stylesheet+Switcher+using+PHP" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://danieldumas.com/css-stylesheet-switcher-using-php.php&amp;title=CSS+Stylesheet+Switcher+using+PHP&amp;srcUrl=http://danieldumas.com/css-stylesheet-switcher-using-php.php&amp;srcTitle=CSS+Stylesheet+Switcher+using+PHP&amp;snippet=Hi%20everyone%21%20today%20I%27ll%20teach%20you%20how%20to%20separate%20CSS%20stylesheet%20for%20your%20website%20or%20web%20projects.%20there%20are%20many%20ways%20to%20do%20this%20but%20I%20am%20going%20to%20use%20PHP%20for%20this%20tutorial.%0D%0A%0D%0AAs%20a%20Web%20Developer%20or%20Web%20Designer%2C%20it%20is%20important%20that%20website%27s%20we%20develop%20are%20working%20on%20all%20major%20browsers%2C%20or%20on%20all" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://danieldumas.com/css-stylesheet-switcher-using-php.php&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://danieldumas.com/css-stylesheet-switcher-using-php.php&amp;title=CSS+Stylesheet+Switcher+using+PHP" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://danieldumas.com/css-stylesheet-switcher-using-php.php&amp;title=CSS+Stylesheet+Switcher+using+PHP" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://danieldumas.com/css-stylesheet-switcher-using-php.php" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=CSS+Stylesheet+Switcher+using+PHP+-+http://bit.ly/h0wxXp&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://danieldumas.com/css-stylesheet-switcher-using-php.php&amp;submitHeadline=CSS+Stylesheet+Switcher+using+PHP&amp;submitSummary=Hi%20everyone%21%20today%20I%27ll%20teach%20you%20how%20to%20separate%20CSS%20stylesheet%20for%20your%20website%20or%20web%20projects.%20there%20are%20many%20ways%20to%20do%20this%20but%20I%20am%20going%20to%20use%20PHP%20for%20this%20tutorial.%0D%0A%0D%0AAs%20a%20Web%20Developer%20or%20Web%20Designer%2C%20it%20is%20important%20that%20website%27s%20we%20develop%20are%20working%20on%20all%20major%20browsers%2C%20or%20on%20all&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdanieldumas.com%2Fcss-stylesheet-switcher-using-php.php&amp;t=CSS+Stylesheet+Switcher+using+PHP" rel="nofollow" class="external" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-yahoomail">
			<a href="http://compose.mail.yahoo.com/?Subject=CSS+Stylesheet+Switcher+using+PHP&amp;body=Link: http://danieldumas.com/css-stylesheet-switcher-using-php.php (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Hi%20everyone%21%20today%20I%27ll%20teach%20you%20how%20to%20separate%20CSS%20stylesheet%20for%20your%20website%20or%20web%20projects.%20there%20are%20many%20ways%20to%20do%20this%20but%20I%20am%20going%20to%20use%20PHP%20for%20this%20tutorial.%0D%0A%0D%0AAs%20a%20Web%20Developer%20or%20Web%20Designer%2C%20it%20is%20important%20that%20website%27s%20we%20develop%20are%20working%20on%20all%20major%20browsers%2C%20or%20on%20all" rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://danieldumas.com/css-stylesheet-switcher-using-php.php/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>PHP and MySQL Basics: Comments</title>
		<link>http://danieldumas.com/php-and-mysql-basics-comments.php</link>
		<comments>http://danieldumas.com/php-and-mysql-basics-comments.php#comments</comments>
		<pubDate>Tue, 23 Sep 2008 21:29:00 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[Tips and Tutorials]]></category>

		<guid isPermaLink="false">http://danieldumas.com/?p=217</guid>
		<description><![CDATA[For greater readability of your PHP code, you should add comments to it, so that you or other people who will look at the code later will understand it clearly. To do this refer to the example below.. PHP Single Line Comment: &#60;?php // Hi There I am a PHP single line comment! ?&#62; PHP [...]]]></description>
			<content:encoded><![CDATA[<p>For greater readability of your PHP code, you should add comments to it, so that you or other people who will look at the code later will understand it clearly.</p>
<p>To do this refer to the example below..</p>
<p><strong>PHP Single Line Comment:</strong><span id="more-217"></span></p>
<pre name="code" class="php">&lt;?php
// Hi There I am a PHP single line comment!
?&gt;</pre>
<p><strong>PHP Multi-Line comment:</strong></p>
<pre name="code" class="php">&lt;?php
/* Hello everybody I am
PHP Multi-Line Comment */
?&gt;</pre>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://danieldumas.com/php-and-mysql-basics-comments.php&amp;t=PHP+and+MySQL+Basics%3A+Comments" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://danieldumas.com/php-and-mysql-basics-comments.php&amp;feed=comments-rss2" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://danieldumas.com/php-and-mysql-basics-comments.php&amp;title=PHP+and+MySQL+Basics%3A+Comments" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://danieldumas.com/php-and-mysql-basics-comments.php&amp;title=PHP+and+MySQL+Basics%3A+Comments" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://danieldumas.com/php-and-mysql-basics-comments.php&amp;title=PHP+and+MySQL+Basics%3A+Comments&amp;srcUrl=http://danieldumas.com/php-and-mysql-basics-comments.php&amp;srcTitle=PHP+and+MySQL+Basics%3A+Comments&amp;snippet=For%20greater%20readability%20of%20your%20PHP%20code%2C%20you%20should%20add%20comments%20to%20it%2C%20so%20that%20you%20or%20other%20people%20who%20will%20look%20at%20the%20code%20later%20will%20understand%20it%20clearly.%0A%0ATo%20do%20this%20refer%20to%20the%20example%20below..%0A%0APHP%20Single%20Line%20Comment%3A%0A%26lt%3B%3Fphp%0A%2F%2F%20Hi%20There%20I%20am%20a%20PHP%20single%20line%20comment%21%0A%3F%26gt%3B%0APHP%20Multi-Lin" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://danieldumas.com/php-and-mysql-basics-comments.php&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://danieldumas.com/php-and-mysql-basics-comments.php&amp;title=PHP+and+MySQL+Basics%3A+Comments" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://danieldumas.com/php-and-mysql-basics-comments.php&amp;title=PHP+and+MySQL+Basics%3A+Comments" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://danieldumas.com/php-and-mysql-basics-comments.php" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PHP+and+MySQL+Basics%3A+Comments+-+http://b2l.me/ah5aC3&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://danieldumas.com/php-and-mysql-basics-comments.php&amp;submitHeadline=PHP+and+MySQL+Basics%3A+Comments&amp;submitSummary=For%20greater%20readability%20of%20your%20PHP%20code%2C%20you%20should%20add%20comments%20to%20it%2C%20so%20that%20you%20or%20other%20people%20who%20will%20look%20at%20the%20code%20later%20will%20understand%20it%20clearly.%0A%0ATo%20do%20this%20refer%20to%20the%20example%20below..%0A%0APHP%20Single%20Line%20Comment%3A%0A%26lt%3B%3Fphp%0A%2F%2F%20Hi%20There%20I%20am%20a%20PHP%20single%20line%20comment%21%0A%3F%26gt%3B%0APHP%20Multi-Lin&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdanieldumas.com%2Fphp-and-mysql-basics-comments.php&amp;t=PHP+and+MySQL+Basics%3A+Comments" rel="nofollow" class="external" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-yahoomail">
			<a href="http://compose.mail.yahoo.com/?Subject=PHP+and+MySQL+Basics%3A+Comments&amp;body=Link: http://danieldumas.com/php-and-mysql-basics-comments.php (sent via shareaholic)%0D%0A%0D%0A----%0D%0A For%20greater%20readability%20of%20your%20PHP%20code%2C%20you%20should%20add%20comments%20to%20it%2C%20so%20that%20you%20or%20other%20people%20who%20will%20look%20at%20the%20code%20later%20will%20understand%20it%20clearly.%0A%0ATo%20do%20this%20refer%20to%20the%20example%20below..%0A%0APHP%20Single%20Line%20Comment%3A%0A%26lt%3B%3Fphp%0A%2F%2F%20Hi%20There%20I%20am%20a%20PHP%20single%20line%20comment%21%0A%3F%26gt%3B%0APHP%20Multi-Lin" rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://danieldumas.com/php-and-mysql-basics-comments.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP and MySQL Basics: Your First PHP Script</title>
		<link>http://danieldumas.com/php-and-mysql-basics-your-first-php-file.php</link>
		<comments>http://danieldumas.com/php-and-mysql-basics-your-first-php-file.php#comments</comments>
		<pubDate>Tue, 23 Sep 2008 18:59:41 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[Tips and Tutorials]]></category>

		<guid isPermaLink="false">http://danieldumas.com/?p=198</guid>
		<description><![CDATA[Now that you know the basic syntax of PHP, let me congratulate you, congrats! hehe. . You are now ready to learn your very first PHP script. consider this example on embedding your first PHP script into HTML. &#60;html&#62; &#60;head&#62; &#60;title&#62;Hello World!&#60;/title&#62; &#60;/head&#62; &#60;body&#62; &#60;!-- This is how you print output in PHP--&#62; &#60;h2&#62;&#60;?php echo [...]]]></description>
			<content:encoded><![CDATA[<p>Now that you know the basic syntax of PHP, let me congratulate you, congrats! <em>hehe. . </em>You are now ready to learn your very first PHP script.</p>
<p>consider this example on embedding your first PHP script into HTML.</p>
<pre name="code" class="php">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Hello World!&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;!-- This is how you print output in PHP--&gt;

&lt;h2&gt;&lt;?php echo "Philippines is a beautiful country!"; ?&gt;&lt;/h2&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p>copy and save this to your text editor with a .php extension then run it on your localhost..<span id="more-198"></span></p>
<p><strong><span style="color: #3366ff;">echo</span></strong> &#8211; is a function for printing output.</p>
<p><strong><span style="color: #ff0000;">Remember:</span></strong> you should always end your php statement with a semicolon <strong>( ; ) </strong>or else you will get an error, this is true if you have complex php statement, but in the example above it will work fine even if we remove the semicolon at the end of our statement because the closing tag <strong>?&gt;</strong> has an implicit semicolon, however it is a good programming practice to end php statement with a semicolon.<strong> </strong></p>
<p>you should get this output from your browser..</p>
<p><a href="http://localhost/wordpress/wp-content/uploads/2008/09/helloworld2.jpg"><img class="alignnone size-full wp-image-52" title="helloworld2" src="http://localhost/wordpress/wp-content/uploads/2008/09/helloworld2.jpg" alt="" width="449" height="307" /></a></p>
<p><strong><span style="color: #ff0000;">Remember: </span></strong><span style="color: #000000;">White space is not important in php, so&#8230;</span></p>
<pre name="code" class="php">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Hello World!&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;!-- This is how you print output in PHP--&gt;

&lt;h2&gt;&lt;?php

echo "Philippines is a beautiful country!";

?&gt;&lt;/h2&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p>would yield the same output as above.</p>
<p>if you look at the HTML source at your browser you should see something like this. .</p>
<pre name="code" class="php">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Hello World!&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;!- - This is how you print output in PHP- -&gt;

&lt;h2&gt;Philippines is a beautiful country!&lt;/h2&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Notice that the php tags didnt show up.. it&#8217;s because the server understand our php script it processed it and just return to the browser the output which is a valid HTML.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://danieldumas.com/php-and-mysql-basics-your-first-php-file.php&amp;t=PHP+and+MySQL+Basics%3A+Your+First+PHP+Script" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://danieldumas.com/php-and-mysql-basics-your-first-php-file.php&amp;feed=comments-rss2" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://danieldumas.com/php-and-mysql-basics-your-first-php-file.php&amp;title=PHP+and+MySQL+Basics%3A+Your+First+PHP+Script" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://danieldumas.com/php-and-mysql-basics-your-first-php-file.php&amp;title=PHP+and+MySQL+Basics%3A+Your+First+PHP+Script" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://danieldumas.com/php-and-mysql-basics-your-first-php-file.php&amp;title=PHP+and+MySQL+Basics%3A+Your+First+PHP+Script&amp;srcUrl=http://danieldumas.com/php-and-mysql-basics-your-first-php-file.php&amp;srcTitle=PHP+and+MySQL+Basics%3A+Your+First+PHP+Script&amp;snippet=Now%20that%20you%20know%20the%20basic%20syntax%20of%20PHP%2C%20let%20me%20congratulate%20you%2C%20congrats%21%20hehe.%20.%20You%20are%20now%20ready%20to%20learn%20your%20very%20first%20PHP%20script.%0A%0Aconsider%20this%20example%20on%20embedding%20your%20first%20PHP%20script%20into%20HTML.%0A%26lt%3Bhtml%26gt%3B%0A%26lt%3Bhead%26gt%3B%0A%26lt%3Btitle%26gt%3BHello%20World%21%26lt%3B%2Ftitle%26gt%3B%0A%26lt%3B%2Fhead%26gt%3B%0A%26lt%3Bbody%26g" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://danieldumas.com/php-and-mysql-basics-your-first-php-file.php&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://danieldumas.com/php-and-mysql-basics-your-first-php-file.php&amp;title=PHP+and+MySQL+Basics%3A+Your+First+PHP+Script" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://danieldumas.com/php-and-mysql-basics-your-first-php-file.php&amp;title=PHP+and+MySQL+Basics%3A+Your+First+PHP+Script" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://danieldumas.com/php-and-mysql-basics-your-first-php-file.php" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PHP+and+MySQL+Basics%3A+Your+First+PHP+Script+-+http://b2l.me/ah36dy&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://danieldumas.com/php-and-mysql-basics-your-first-php-file.php&amp;submitHeadline=PHP+and+MySQL+Basics%3A+Your+First+PHP+Script&amp;submitSummary=Now%20that%20you%20know%20the%20basic%20syntax%20of%20PHP%2C%20let%20me%20congratulate%20you%2C%20congrats%21%20hehe.%20.%20You%20are%20now%20ready%20to%20learn%20your%20very%20first%20PHP%20script.%0A%0Aconsider%20this%20example%20on%20embedding%20your%20first%20PHP%20script%20into%20HTML.%0A%26lt%3Bhtml%26gt%3B%0A%26lt%3Bhead%26gt%3B%0A%26lt%3Btitle%26gt%3BHello%20World%21%26lt%3B%2Ftitle%26gt%3B%0A%26lt%3B%2Fhead%26gt%3B%0A%26lt%3Bbody%26g&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdanieldumas.com%2Fphp-and-mysql-basics-your-first-php-file.php&amp;t=PHP+and+MySQL+Basics%3A+Your+First+PHP+Script" rel="nofollow" class="external" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-yahoomail">
			<a href="http://compose.mail.yahoo.com/?Subject=PHP+and+MySQL+Basics%3A+Your+First+PHP+Script&amp;body=Link: http://danieldumas.com/php-and-mysql-basics-your-first-php-file.php (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Now%20that%20you%20know%20the%20basic%20syntax%20of%20PHP%2C%20let%20me%20congratulate%20you%2C%20congrats%21%20hehe.%20.%20You%20are%20now%20ready%20to%20learn%20your%20very%20first%20PHP%20script.%0A%0Aconsider%20this%20example%20on%20embedding%20your%20first%20PHP%20script%20into%20HTML.%0A%26lt%3Bhtml%26gt%3B%0A%26lt%3Bhead%26gt%3B%0A%26lt%3Btitle%26gt%3BHello%20World%21%26lt%3B%2Ftitle%26gt%3B%0A%26lt%3B%2Fhead%26gt%3B%0A%26lt%3Bbody%26g" rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://danieldumas.com/php-and-mysql-basics-your-first-php-file.php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP and MySQL Basics Tutorial</title>
		<link>http://danieldumas.com/php-and-mysql-basics-tutorial.php</link>
		<comments>http://danieldumas.com/php-and-mysql-basics-tutorial.php#comments</comments>
		<pubDate>Sat, 20 Sep 2008 07:31:22 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[Tips and Tutorials]]></category>

		<guid isPermaLink="false">http://danieldumas.com/?p=135</guid>
		<description><![CDATA[Hello guys today i am going to start my basic PHP tutorial. i will give examples in every part of this tutorial so that you can follow with me easily. my aim in this tutorial is to share my knowledge in PHP to anyone specially to my blog readers who wants to learn the basics [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_136" class="wp-caption alignleft" style="width: 164px"><a href="http://danieldumas.com/wp-content/uploads/2008/09/phphello.jpg"><img class="size-medium wp-image-136" title="PHP" src="http://danieldumas.com/wp-content/uploads/2008/09/phphello.jpg" alt="PHP Basics" width="154" height="58" /></a><p class="wp-caption-text"> </p></div>
<p style="text-align: justify;">Hello guys today i am going to start my basic PHP tutorial. i will give examples in every part of this tutorial so that you can follow with me easily. my aim in this tutorial is to share my knowledge in PHP to anyone specially to my blog readers who wants to learn the basics of PHP. i will focus on the very basic of PHP so that anyone can follow along even if you dont have any background in  PHP or any other programming language <span id="more-135"></span>before. Anyone is welcome to comment or add anything in the tutorial specially those php professional so that we can help other people dont worry i will put your name in the contributors list <em>hehe </em>thanks in advance.</p>
<p style="text-align: justify;">Here&#8217;s the list of topics / contents included in the tutorial.</p>
<ul>
<li>Introduction</li>
<li>Software Needed and Installations</li>
<li>PHP scripting basics</li>
<li>Data Types</li>
<li>Conditionals and Looping</li>
<li>Arrays and Functions</li>
<li>Working with MySQL</li>
<li>Working With Sessions and more&#8230;</li>
</ul>
<p>I will update and make a separate page of all the links to the tutorial everytime i post so that you can check it out lesson by lesson or chapter by chapter. thanks.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://danieldumas.com/php-and-mysql-basics-tutorial.php&amp;t=PHP+and+MySQL+Basics+Tutorial" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://danieldumas.com/php-and-mysql-basics-tutorial.php&amp;feed=comments-rss2" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://danieldumas.com/php-and-mysql-basics-tutorial.php&amp;title=PHP+and+MySQL+Basics+Tutorial" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://danieldumas.com/php-and-mysql-basics-tutorial.php&amp;title=PHP+and+MySQL+Basics+Tutorial" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://danieldumas.com/php-and-mysql-basics-tutorial.php&amp;title=PHP+and+MySQL+Basics+Tutorial&amp;srcUrl=http://danieldumas.com/php-and-mysql-basics-tutorial.php&amp;srcTitle=PHP+and+MySQL+Basics+Tutorial&amp;snippet=%0AHello%20guys%20today%20i%20am%20going%20to%20start%20my%20basic%20PHP%20tutorial.%20i%20will%20give%20examples%20in%20every%20part%20of%20this%20tutorial%20so%20that%20you%20can%20follow%20with%20me%20easily.%20my%20aim%20in%20this%20tutorial%20is%20to%20share%20my%20knowledge%20in%20PHP%20to%20anyone%20specially%20to%20my%20blog%20readers%20who%20wants%20to%20learn%20the%20basics%20of%20PHP.%20i%20will%20focus%20on" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://danieldumas.com/php-and-mysql-basics-tutorial.php&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://danieldumas.com/php-and-mysql-basics-tutorial.php&amp;title=PHP+and+MySQL+Basics+Tutorial" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://danieldumas.com/php-and-mysql-basics-tutorial.php&amp;title=PHP+and+MySQL+Basics+Tutorial" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://danieldumas.com/php-and-mysql-basics-tutorial.php" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PHP+and+MySQL+Basics+Tutorial+-+http://b2l.me/ah6sc9&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://danieldumas.com/php-and-mysql-basics-tutorial.php&amp;submitHeadline=PHP+and+MySQL+Basics+Tutorial&amp;submitSummary=%0AHello%20guys%20today%20i%20am%20going%20to%20start%20my%20basic%20PHP%20tutorial.%20i%20will%20give%20examples%20in%20every%20part%20of%20this%20tutorial%20so%20that%20you%20can%20follow%20with%20me%20easily.%20my%20aim%20in%20this%20tutorial%20is%20to%20share%20my%20knowledge%20in%20PHP%20to%20anyone%20specially%20to%20my%20blog%20readers%20who%20wants%20to%20learn%20the%20basics%20of%20PHP.%20i%20will%20focus%20on&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdanieldumas.com%2Fphp-and-mysql-basics-tutorial.php&amp;t=PHP+and+MySQL+Basics+Tutorial" rel="nofollow" class="external" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-yahoomail">
			<a href="http://compose.mail.yahoo.com/?Subject=PHP+and+MySQL+Basics+Tutorial&amp;body=Link: http://danieldumas.com/php-and-mysql-basics-tutorial.php (sent via shareaholic)%0D%0A%0D%0A----%0D%0A %0AHello%20guys%20today%20i%20am%20going%20to%20start%20my%20basic%20PHP%20tutorial.%20i%20will%20give%20examples%20in%20every%20part%20of%20this%20tutorial%20so%20that%20you%20can%20follow%20with%20me%20easily.%20my%20aim%20in%20this%20tutorial%20is%20to%20share%20my%20knowledge%20in%20PHP%20to%20anyone%20specially%20to%20my%20blog%20readers%20who%20wants%20to%20learn%20the%20basics%20of%20PHP.%20i%20will%20focus%20on" rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://danieldumas.com/php-and-mysql-basics-tutorial.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

