<?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: Creating a PHP CMS – Part 4</title>
	<atom:link href="http://fwebde.com/web-design/creating-a-php-cms-part-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://fwebde.com/web-design/creating-a-php-cms-part-4/</link>
	<description>Helping people to make fantastic websites, whether you are a designer, a developer, or someone just who loves websites.</description>
	<lastBuildDate>Fri, 15 Jul 2011 11:19:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: ivan</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-4/comment-page-1/#comment-3827</link>
		<dc:creator>ivan</dc:creator>
		<pubDate>Wed, 04 May 2011 09:09:05 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=301#comment-3827</guid>
		<description>Hello,

Please send me a complete function.php files,or upload here.Somewhere I&#039;m wrong because I do not understand the above description, but I do not know where.

Thanks,

Ivan</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Please send me a complete function.php files,or upload here.Somewhere I'm wrong because I do not understand the above description, but I do not know where.</p>
<p>Thanks,</p>
<p>Ivan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Bannatyne</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-4/comment-page-1/#comment-3726</link>
		<dc:creator>Eric Bannatyne</dc:creator>
		<pubDate>Wed, 29 Dec 2010 18:57:20 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=301#comment-3726</guid>
		<description>See &lt;a href=&quot;http://fwebde.com/web-design/creating-a-php-cms-part-4/#comment-2093&quot;&gt;my response to Louis&#039; comment&lt;/a&gt;.

tl;dr: Change &lt;code&gt;if($_GET[&#039;id&#039;])&lt;/code&gt; to &lt;code&gt;if(isset($_GET[&#039;id&#039;]))&lt;/code&gt; to check if the variable exists or not, rather than check if its &lt;em&gt;value&lt;/em&gt; is true and potentially try to use a variable that may not exist.</description>
		<content:encoded><![CDATA[<p>See <a href="http://fwebde.com/web-design/creating-a-php-cms-part-4/#comment-2093">my response to Louis' comment</a>.</p>
<p>tl;dr: Change <code>if($_GET['id'])</code> to <code>if(isset($_GET['id']))</code> to check if the variable exists or not, rather than check if its <em>value</em> is true and potentially try to use a variable that may not exist.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dorjee</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-4/comment-page-1/#comment-3725</link>
		<dc:creator>Dorjee</dc:creator>
		<pubDate>Wed, 29 Dec 2010 10:52:52 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=301#comment-3725</guid>
		<description>Hi! I am getting an error message

Notice: Undefined index: id in C:\wamp\www\cms\functions.php on line 36
freetibet

Notice: Undefined index: id in C:\wamp\www\cms\functions.php on line 60
fdasfdafdfadsfdasfadsfdfdfadsfdasfadsfdfdfadsfdasfadsfdfdfadsfdasfadsfdfdfadsfdasfadsfdfdfadsfdasfadsfdfdfadsfdasfadsfdfdfadsfdasfadsfd

Notice: Undefined index: id in C:\wamp\www\cms\functions.php on line 82
Dec 22, 2010

Line 19/36/60/82 in function.php is
..... if ($_GET[&#039;id&#039;])
Line

Plzz can you please help with this...
And in case, if I put ?id=2 at the end, it work fine...</description>
		<content:encoded><![CDATA[<p>Hi! I am getting an error message</p>
<p>Notice: Undefined index: id in C:\wamp\www\cms\functions.php on line 36<br />
freetibet</p>
<p>Notice: Undefined index: id in C:\wamp\www\cms\functions.php on line 60<br />
fdasfdafdfadsfdasfadsfdfdfadsfdasfadsfdfdfadsfdasfadsfdfdfadsfdasfadsfdfdfadsfdasfadsfdfdfadsfdasfadsfdfdfadsfdasfadsfdfdfadsfdasfadsfd</p>
<p>Notice: Undefined index: id in C:\wamp\www\cms\functions.php on line 82<br />
Dec 22, 2010</p>
<p>Line 19/36/60/82 in function.php is<br />
..... if ($_GET['id'])<br />
Line</p>
<p>Plzz can you please help with this...<br />
And in case, if I put ?id=2 at the end, it work fine...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Bannatyne</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-4/comment-page-1/#comment-2136</link>
		<dc:creator>Eric Bannatyne</dc:creator>
		<pubDate>Tue, 16 Nov 2010 06:13:39 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=301#comment-2136</guid>
		<description>The main reason for using a database entry to store the home id, as opposed to using constants, is to allow you to easily change it via the admin panel, as you&#039;ll see in a later part of the tutorial series, which would be more difficult to do using constants.

Also, I apologize for being late to approve comments, I haven&#039;t been receiving email notifications for some reason :/</description>
		<content:encoded><![CDATA[<p>The main reason for using a database entry to store the home id, as opposed to using constants, is to allow you to easily change it via the admin panel, as you'll see in a later part of the tutorial series, which would be more difficult to do using constants.</p>
<p>Also, I apologize for being late to approve comments, I haven't been receiving email notifications for some reason :/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rognvaldr</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-4/comment-page-1/#comment-2130</link>
		<dc:creator>rognvaldr</dc:creator>
		<pubDate>Wed, 10 Nov 2010 13:16:34 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=301#comment-2130</guid>
		<description>Would it be better if the entries in the `settings table` be defined as constants in the config file instead?

I find it cumbersome to e.g. make a database request just to get homepage id. 

But other than that, awesome tutorial. I have no problem with the coding. I just don&#039;t know how exactly CMS are put together.</description>
		<content:encoded><![CDATA[<p>Would it be better if the entries in the `settings table` be defined as constants in the config file instead?</p>
<p>I find it cumbersome to e.g. make a database request just to get homepage id. </p>
<p>But other than that, awesome tutorial. I have no problem with the coding. I just don't know how exactly CMS are put together.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Bannatyne</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-4/comment-page-1/#comment-2097</link>
		<dc:creator>Eric Bannatyne</dc:creator>
		<pubDate>Wed, 20 Oct 2010 23:12:26 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=301#comment-2097</guid>
		<description>It looks like $_GET[&#039;id&#039;] doesn&#039;t exist. Try testing to see if it exists using isset($_GET[&#039;id&#039;]), and see if that helps.</description>
		<content:encoded><![CDATA[<p>It looks like $_GET['id'] doesn't exist. Try testing to see if it exists using isset($_GET['id']), and see if that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Louis</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-4/comment-page-1/#comment-2096</link>
		<dc:creator>Louis</dc:creator>
		<pubDate>Wed, 20 Oct 2010 09:41:31 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=301#comment-2096</guid>
		<description>Sorry it didn&#039;t come up here is line 22
 if (in_array($_GET[&#039;id&#039;], $IDs) &#124;&#124; !$_GET):</description>
		<content:encoded><![CDATA[<p>Sorry it didn't come up here is line 22<br />
 if (in_array($_GET['id'], $IDs) || !$_GET):</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Louis</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-4/comment-page-1/#comment-2095</link>
		<dc:creator>Louis</dc:creator>
		<pubDate>Wed, 20 Oct 2010 09:38:26 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=301#comment-2095</guid>
		<description>I am actually learning using your codes. I download it and copied it verbatin just to get a grip.

This is line 22    










	
		
	
	
		
		
			
		
-
		
			
			
			
			
		
		
			&lt;!-- Show a not found error --&gt;
			Not found
		
		
				
	
</description>
		<content:encoded><![CDATA[<p>I am actually learning using your codes. I download it and copied it verbatin just to get a grip.</p>
<p>This is line 22    </p>
<p>-</p>
<p>			<!-- Show a not found error --><br />
			Not found</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Bannatyne</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-4/comment-page-1/#comment-2094</link>
		<dc:creator>Eric Bannatyne</dc:creator>
		<pubDate>Tue, 19 Oct 2010 23:07:52 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=301#comment-2094</guid>
		<description>&quot;Undefined index&quot; means that you are trying to access an element of an array that doesn&#039;t exist. In this case you&#039;re trying to access something like &lt;code&gt;$arr[&#039;id&#039;]&lt;/code&gt;, which does not exist.

What exactly do you have on line 22?</description>
		<content:encoded><![CDATA[<p>"Undefined index" means that you are trying to access an element of an array that doesn't exist. In this case you're trying to access something like <code>$arr['id']</code>, which does not exist.</p>
<p>What exactly do you have on line 22?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Louis</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-4/comment-page-1/#comment-2093</link>
		<dc:creator>Louis</dc:creator>
		<pubDate>Tue, 19 Oct 2010 20:52:42 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=301#comment-2093</guid>
		<description>I keep getting this error message
Notice: Undefined index: id in C:\wamp\www\cms\index.php on line 22

What could be the proble?</description>
		<content:encoded><![CDATA[<p>I keep getting this error message<br />
Notice: Undefined index: id in C:\wamp\www\cms\index.php on line 22</p>
<p>What could be the proble?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

