<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Create a Simple Calendar Using PHP</title>
	<atom:link href="http://www.devlounge.net/code/simple-php-calendar/feed" rel="self" type="application/rss+xml" />
	<link>http://www.devlounge.net/code/simple-php-calendar</link>
	<description>Design, Develop, and Grow</description>
	<lastBuildDate>Wed, 08 Feb 2012 09:03:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: sedkonz</title>
		<link>http://www.devlounge.net/code/simple-php-calendar/comment-page-1#comment-180056</link>
		<dc:creator>sedkonz</dc:creator>
		<pubDate>Sun, 19 Jul 2009 02:35:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=1621#comment-180056</guid>
		<description>hi , that s great calendar! but can we change the days number into my own value.
maybe someone colud give some example...-php newbie</description>
		<content:encoded><![CDATA[<p>hi , that s great calendar! but can we change the days number into my own value.<br />
maybe someone colud give some example&#8230;-php newbie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BUN Seak Leang</title>
		<link>http://www.devlounge.net/code/simple-php-calendar/comment-page-1#comment-179187</link>
		<dc:creator>BUN Seak Leang</dc:creator>
		<pubDate>Mon, 11 May 2009 08:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=1621#comment-179187</guid>
		<description>PHP is very new to me. Recently, my teacher give me a  home work &quot;build a calender using internet programming language&quot;. I believe that this sample will be very useful to my work.</description>
		<content:encoded><![CDATA[<p>PHP is very new to me. Recently, my teacher give me a  home work &#8220;build a calender using internet programming language&#8221;. I believe that this sample will be very useful to my work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaaa</title>
		<link>http://www.devlounge.net/code/simple-php-calendar/comment-page-1#comment-178946</link>
		<dc:creator>Shaaa</dc:creator>
		<pubDate>Thu, 16 Apr 2009 10:27:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=1621#comment-178946</guid>
		<description>i have changed the following line,

$LastDay = date(&quot;d&quot;, mktime(0,0,0,$Month+1, 0, $Year));

into this,

$LastDay = date(&quot;d&quot;, mktime(0,0,0,$Month+1, 0, $Year))+1;

now it works fine</description>
		<content:encoded><![CDATA[<p>i have changed the following line,</p>
<p>$LastDay = date(&#8220;d&#8221;, mktime(0,0,0,$Month+1, 0, $Year));</p>
<p>into this,</p>
<p>$LastDay = date(&#8220;d&#8221;, mktime(0,0,0,$Month+1, 0, $Year))+1;</p>
<p>now it works fine</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaaa</title>
		<link>http://www.devlounge.net/code/simple-php-calendar/comment-page-1#comment-178945</link>
		<dc:creator>Shaaa</dc:creator>
		<pubDate>Thu, 16 Apr 2009 10:18:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=1621#comment-178945</guid>
		<description>Nice article...
But there is an issue... in each month it shows as 1 day less than total number of days.</description>
		<content:encoded><![CDATA[<p>Nice article&#8230;<br />
But there is an issue&#8230; in each month it shows as 1 day less than total number of days.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Hall</title>
		<link>http://www.devlounge.net/code/simple-php-calendar/comment-page-1#comment-178549</link>
		<dc:creator>Tim Hall</dc:creator>
		<pubDate>Wed, 18 Mar 2009 04:10:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=1621#comment-178549</guid>
		<description>Nice article,
I had been pondering this but you saved me the brain power. A special thanks to KC for the example and working code.

Nice work</description>
		<content:encoded><![CDATA[<p>Nice article,<br />
I had been pondering this but you saved me the brain power. A special thanks to KC for the example and working code.</p>
<p>Nice work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KC</title>
		<link>http://www.devlounge.net/code/simple-php-calendar/comment-page-1#comment-178465</link>
		<dc:creator>KC</dc:creator>
		<pubDate>Thu, 12 Mar 2009 19:06:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=1621#comment-178465</guid>
		<description>WOW, that got eaten alive..  so much for trying.
for a working version go here:
http://www.dyertech.ca/current/cal.php</description>
		<content:encoded><![CDATA[<p>WOW, that got eaten alive..  so much for trying.<br />
for a working version go here:<br />
<a href="http://www.dyertech.ca/current/cal.php" rel="nofollow">http://www.dyertech.ca/current/cal.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KC</title>
		<link>http://www.devlounge.net/code/simple-php-calendar/comment-page-1#comment-178464</link>
		<dc:creator>KC</dc:creator>
		<pubDate>Thu, 12 Mar 2009 19:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=1621#comment-178464</guid>
		<description>Great code... but alot of mistakes, 
im going to try and upload a revised version.


	


	&lt;?php
		
		
		echo &quot;&quot;;
		echo &quot;Calendar Table for $MonthName, $Year&quot;;
		echo &quot;&quot;; 
		
		$daysOfWeek = array(&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;);
		
		foreach ($daysOfWeek as $value) {
		  echo &quot;&lt;strong&gt;$value&lt;/strong&gt;&quot;;
		}
		echo &quot;&quot;; 
		
		$MonthStart = date(&quot;w&quot;, $Timestamp);
		if ($MonthStart == 0) { 
		  // if the month starts on a Sunday
		  $MonthStart = 7;
		} 
		

		$LastDay = date(&quot;d&quot;, mktime(0,0,0,$Month+1, 0, $Year)); 
		$StartDate = -$MonthStart; 


		for ($k=1;$k&lt;=6;$k++){  //print six rows for six possible weeks
		  echo&quot;&quot;; 
		  for ($j=1;$j&lt;=7;$j++){ //seven columns per row 
		    $StartDate++;
		    if($StartDate  0) {
		        echo&quot;$StartDate \n&quot;;  
		      } else {
				echo&quot; \n&quot;;  
			  }
		    } elseif (($StartDate = $LastDay)) { //date goes here
		      if($StartDate &gt;= 0) {
		        echo&quot;$StartDate \n&quot;;  
		      }	
		    }
		} 
		echo&quot;&quot;; 
		} //End Table Row 
		
		echo &quot;&quot;;
	?&gt;
	
	 
		&lt;?php
			echo &quot;&quot;;
			for($m=1;$m&lt;=12;$m++){  
			  $selected = &quot;&quot;;
			  $longDate = date(&quot;F&quot;, mktime(0,0,0,$m,1,$Year));
			  if ($Month==$m){ 
				$selected = &quot;selected &quot;;
			  }
			  echo &quot;$longDate \n&quot;;
			}
			echo &quot;&quot;;
			echo &quot;&quot;;
			for($y=2007;$y&lt;=2020;$y++){  
			  $selected = &quot;&quot;;
			  $longDate = date(&quot;Y&quot;, mktime(0,0,0,1,1,$y));
			  if ($Year==$y){ 
				$selected = &quot;selected \n&quot;;
			  }
			  echo &quot;$longDate \n&quot;;
			}
			echo &quot;&quot;;
		?&gt;
		
	
</description>
		<content:encoded><![CDATA[<p>Great code&#8230; but alot of mistakes,<br />
im going to try and upload a revised version.</p>
<p>	&lt;?php</p>
<p>		echo &#8220;&#8221;;<br />
		echo &#8220;Calendar Table for $MonthName, $Year&#8221;;<br />
		echo &#8220;&#8221;; </p>
<p>		$daysOfWeek = array(&#8220;Sun&#8221;,&#8221;Mon&#8221;,&#8221;Tue&#8221;,&#8221;Wed&#8221;,&#8221;Thu&#8221;,&#8221;Fri&#8221;,&#8221;Sat&#8221;);</p>
<p>		foreach ($daysOfWeek as $value) {<br />
		  echo &#8220;<strong>$value</strong>&#8220;;<br />
		}<br />
		echo &#8220;&#8221;; </p>
<p>		$MonthStart = date(&#8220;w&#8221;, $Timestamp);<br />
		if ($MonthStart == 0) {<br />
		  // if the month starts on a Sunday<br />
		  $MonthStart = 7;<br />
		} </p>
<p>		$LastDay = date(&#8220;d&#8221;, mktime(0,0,0,$Month+1, 0, $Year));<br />
		$StartDate = -$MonthStart; </p>
<p>		for ($k=1;$k&lt;=6;$k++){  //print six rows for six possible weeks<br />
		  echo&#8221;";<br />
		  for ($j=1;$j&lt;=7;$j++){ //seven columns per row<br />
		    $StartDate++;<br />
		    if($StartDate  0) {<br />
		        echo&#8221;$StartDate \n&#8221;;<br />
		      } else {<br />
				echo&#8221; \n&#8221;;<br />
			  }<br />
		    } elseif (($StartDate = $LastDay)) { //date goes here<br />
		      if($StartDate &gt;= 0) {<br />
		        echo&#8221;$StartDate \n&#8221;;<br />
		      }<br />
		    }<br />
		}<br />
		echo&#8221;";<br />
		} //End Table Row </p>
<p>		echo &#8220;&#8221;;<br />
	?&gt;</p>
<p>		&lt;?php<br />
			echo &#8220;&#8221;;<br />
			for($m=1;$m&lt;=12;$m++){<br />
			  $selected = &#8220;&#8221;;<br />
			  $longDate = date(&#8220;F&#8221;, mktime(0,0,0,$m,1,$Year));<br />
			  if ($Month==$m){<br />
				$selected = &#8220;selected &#8220;;<br />
			  }<br />
			  echo &#8220;$longDate \n&#8221;;<br />
			}<br />
			echo &#8220;&#8221;;<br />
			echo &#8220;&#8221;;<br />
			for($y=2007;$y&lt;=2020;$y++){<br />
			  $selected = &#8220;&#8221;;<br />
			  $longDate = date(&#8220;Y&#8221;, mktime(0,0,0,1,1,$y));<br />
			  if ($Year==$y){<br />
				$selected = &#8220;selected \n&#8221;;<br />
			  }<br />
			  echo &#8220;$longDate \n&#8221;;<br />
			}<br />
			echo &#8220;&#8221;;<br />
		?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Json</title>
		<link>http://www.devlounge.net/code/simple-php-calendar/comment-page-1#comment-178177</link>
		<dc:creator>Json</dc:creator>
		<pubDate>Sun, 15 Feb 2009 10:14:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=1621#comment-178177</guid>
		<description>Neat idea nothing to see...
Demo, Preview or anything to see what it looks like?
Regards, 
Cheers</description>
		<content:encoded><![CDATA[<p>Neat idea nothing to see&#8230;<br />
Demo, Preview or anything to see what it looks like?<br />
Regards,<br />
Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: piyush</title>
		<link>http://www.devlounge.net/code/simple-php-calendar/comment-page-1#comment-177938</link>
		<dc:creator>piyush</dc:creator>
		<pubDate>Wed, 28 Jan 2009 21:45:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=1621#comment-177938</guid>
		<description>thanks a lot for providing such a helpful script  on the net. 
   ...................Thanks once again................</description>
		<content:encoded><![CDATA[<p>thanks a lot for providing such a helpful script  on the net.<br />
   &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.Thanks once again&#8230;&#8230;&#8230;&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Create a Simple Calendar Using PHP &#124; Devlounge</title>
		<link>http://www.devlounge.net/code/simple-php-calendar/comment-page-1#comment-177824</link>
		<dc:creator>Create a Simple Calendar Using PHP &#124; Devlounge</dc:creator>
		<pubDate>Mon, 12 Jan 2009 18:52:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=1621#comment-177824</guid>
		<description>[...] original here:  Create a Simple Calendar Using PHP &#124; Devlounge Tags: advertise-here, browse-the-site, calendar, code, date, devlounge, publishing, [...]</description>
		<content:encoded><![CDATA[<p>[...] original here:  Create a Simple Calendar Using PHP | Devlounge Tags: advertise-here, browse-the-site, calendar, code, date, devlounge, publishing, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Kane</title>
		<link>http://www.devlounge.net/code/simple-php-calendar/comment-page-1#comment-177785</link>
		<dc:creator>Michael Kane</dc:creator>
		<pubDate>Thu, 08 Jan 2009 22:39:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=1621#comment-177785</guid>
		<description>First let me say that I  am new to PHP. I cannot get past line two without an error!
1&lt;?php
2//if values are not set for $Month and $Year, get current date values
3if ((!isset($_GET[&quot;Month&quot;]))&amp;&amp; (!isset($_GET[&quot;Year&quot;]))) 
4	 {
5      $Month = date(&quot;m&quot;);
6      $Year = date(&quot;Y&quot;);
7    }
8     else{
9      $Month = $_GET[&quot;Month&quot;];
10      $Year = $_GET[&quot;Year&quot;];
11     } 

This is the error message
Parse error: syntax error, unexpected &#039;;&#039; in C:\wamp\www\LAFestUpload\calendarTest.php on line 3

Any help would be appreciated.
Thank you.
Michael</description>
		<content:encoded><![CDATA[<p>First let me say that I  am new to PHP. I cannot get past line two without an error!<br />
1&lt;?php<br />
2//if values are not set for $Month and $Year, get current date values<br />
3if ((!isset($_GET["Month"]))&amp;&amp; (!isset($_GET["Year"])))<br />
4	 {<br />
5      $Month = date(&#8220;m&#8221;);<br />
6      $Year = date(&#8220;Y&#8221;);<br />
7    }<br />
8     else{<br />
9      $Month = $_GET["Month"];<br />
10      $Year = $_GET["Year"];<br />
11     } </p>
<p>This is the error message<br />
Parse error: syntax error, unexpected &#8216;;&#8217; in C:\wamp\www\LAFestUpload\calendarTest.php on line 3</p>
<p>Any help would be appreciated.<br />
Thank you.<br />
Michael</p>
]]></content:encoded>
	</item>
</channel>
</rss>

