<?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 7</title>
	<atom:link href="http://fwebde.com/web-design/creating-a-php-cms-part-7/feed/" rel="self" type="application/rss+xml" />
	<link>http://fwebde.com/web-design/creating-a-php-cms-part-7/</link>
	<description>Helping people to make fantastic websites, whether you are a designer, a developer, or someone just who loves websites.</description>
	<lastBuildDate>Fri, 23 Jul 2010 12:14:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Eric Bannatyne</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-7/comment-page-1/#comment-1821</link>
		<dc:creator>Eric Bannatyne</dc:creator>
		<pubDate>Fri, 11 Jun 2010 14:50:17 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=365#comment-1821</guid>
		<description>Well, &quot;undefined index&quot; means that you are trying to access part of an array that doesn&#039;t exist. For example:

&lt;pre lang=&quot;PHP&quot;&gt;
$foo = array(&#039;one&#039;=&gt;1, &#039;two&#039;=&gt;2);
echo $foo[&#039;three&#039;];
&lt;/pre&gt;

In this case, $foo[&#039;three&#039;] is causing the notice, because the index &#039;three&#039; has not yet been defined.

So try looking in the files mentioned by the message, and make sure that the array is being completely created.</description>
		<content:encoded><![CDATA[<p>Well, "undefined index" means that you are trying to access part of an array that doesn't exist. For example:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$foo</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'one'</span><span style="color: #339933;">=&gt;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'two'</span><span style="color: #339933;">=&gt;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$foo</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'three'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></pre></div></div>

<p>In this case, $foo['three'] is causing the notice, because the index 'three' has not yet been defined.</p>
<p>So try looking in the files mentioned by the message, and make sure that the array is being completely created.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: me</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-7/comment-page-1/#comment-1818</link>
		<dc:creator>me</dc:creator>
		<pubDate>Fri, 11 Jun 2010 06:54:59 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=365#comment-1818</guid>
		<description>downloaded the source code to try it out before going on and reading it

i&#039;m getting this: 

   *


Notice: Undefined index: id in /opt/lampp/htdocs/server/cms/index.php on line 22

Notice: Undefined index: id in /opt/lampp/htdocs/server/cms/functions.php on line 31


Notice: Undefined index: id in /opt/lampp/htdocs/server/cms/functions.php on line 75
Jan 01, 1970

Notice: Undefined index: id in /opt/lampp/htdocs/server/cms/functions.php on line 53</description>
		<content:encoded><![CDATA[<p>downloaded the source code to try it out before going on and reading it</p>
<p>i'm getting this: </p>
<p>   *</p>
<p>Notice: Undefined index: id in /opt/lampp/htdocs/server/cms/index.php on line 22</p>
<p>Notice: Undefined index: id in /opt/lampp/htdocs/server/cms/functions.php on line 31</p>
<p>Notice: Undefined index: id in /opt/lampp/htdocs/server/cms/functions.php on line 75<br />
Jan 01, 1970</p>
<p>Notice: Undefined index: id in /opt/lampp/htdocs/server/cms/functions.php on line 53</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Bannatyne</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-7/comment-page-1/#comment-1568</link>
		<dc:creator>Eric Bannatyne</dc:creator>
		<pubDate>Sun, 16 May 2010 23:40:35 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=365#comment-1568</guid>
		<description>LC: Basically that means that you are trying to access something called $array[&#039;id&#039;], which does not exist.

Does line 22 contain something like &lt;code&gt;if ($_GET[&#039;id&#039;])&lt;/code&gt;? If so, you may want to try changing that to &lt;code&gt;if (isset($_GET[&#039;id&#039;]))&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>LC: Basically that means that you are trying to access something called $array['id'], which does not exist.</p>
<p>Does line 22 contain something like <code>if ($_GET['id'])</code>? If so, you may want to try changing that to <code>if (isset($_GET['id']))</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LC</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-7/comment-page-1/#comment-1567</link>
		<dc:creator>LC</dc:creator>
		<pubDate>Sun, 16 May 2010 23:25:43 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=365#comment-1567</guid>
		<description>Thankee, nick!

Now I just have some errors on my /cms/ index page, saying: Notice: Undefined index: id in C:\wamp\www\cms\index.php on line 22.

Any help there?</description>
		<content:encoded><![CDATA[<p>Thankee, nick!</p>
<p>Now I just have some errors on my /cms/ index page, saying: Notice: Undefined index: id in C:\wamp\www\cms\index.php on line 22.</p>
<p>Any help there?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Bannatyne</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-7/comment-page-1/#comment-1566</link>
		<dc:creator>Eric Bannatyne</dc:creator>
		<pubDate>Sun, 16 May 2010 23:23:41 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=365#comment-1566</guid>
		<description>I did not think of that. That could very well be the proper solution to that problem!</description>
		<content:encoded><![CDATA[<p>I did not think of that. That could very well be the proper solution to that problem!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nick</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-7/comment-page-1/#comment-1565</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Sun, 16 May 2010 23:08:34 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=365#comment-1565</guid>
		<description>you need to move the connect() function higher in the code.  it needs to be before the mysql-real-escape-string function call.  i put mine after the check member() call.  you must be connected to a DB before you can call mysql-real-escape-string.</description>
		<content:encoded><![CDATA[<p>you need to move the connect() function higher in the code.  it needs to be before the mysql-real-escape-string function call.  i put mine after the check member() call.  you must be connected to a DB before you can call mysql-real-escape-string.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LC</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-7/comment-page-1/#comment-1564</link>
		<dc:creator>LC</dc:creator>
		<pubDate>Fri, 14 May 2010 11:18:54 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=365#comment-1564</guid>
		<description>Hmm, still no fix.

I&#039;m running on a localhost wamp2.0 setup.

I doubt that&#039;s the problem, as I get similar problems when I put it live on my own site.</description>
		<content:encoded><![CDATA[<p>Hmm, still no fix.</p>
<p>I'm running on a localhost wamp2.0 setup.</p>
<p>I doubt that's the problem, as I get similar problems when I put it live on my own site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LC</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-7/comment-page-1/#comment-1563</link>
		<dc:creator>LC</dc:creator>
		<pubDate>Wed, 12 May 2010 23:14:48 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=365#comment-1563</guid>
		<description>Gagh, I&#039;ll look it over.

Thanks.</description>
		<content:encoded><![CDATA[<p>Gagh, I'll look it over.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Bannatyne</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-7/comment-page-1/#comment-1562</link>
		<dc:creator>Eric Bannatyne</dc:creator>
		<pubDate>Wed, 12 May 2010 23:13:58 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=365#comment-1562</guid>
		<description>Looks like there&#039;s a problem validating your MySQL credentials. Make sure that you have spelled the username correctly, and that you have given that user access to the database. Also, it looks like you haven&#039;t included a password. If your MySQL user is password-protected, make sure to include that as well.</description>
		<content:encoded><![CDATA[<p>Looks like there's a problem validating your MySQL credentials. Make sure that you have spelled the username correctly, and that you have given that user access to the database. Also, it looks like you haven't included a password. If your MySQL user is password-protected, make sure to include that as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LC</title>
		<link>http://fwebde.com/web-design/creating-a-php-cms-part-7/comment-page-1/#comment-1561</link>
		<dc:creator>LC</dc:creator>
		<pubDate>Wed, 12 May 2010 22:08:50 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=365#comment-1561</guid>
		<description>I am having some trouble with creating a page, and, on my localhost version, I get tons of &quot;Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user &#039;SYSTEM&#039;@&#039;localhost&#039; (using password: NO) in C:\wamp\www\cms\admin\create.php  on line 14&quot; for creating pages. I really only get 4, but still.

Help, and also, I emailed you before about Wordpress.</description>
		<content:encoded><![CDATA[<p>I am having some trouble with creating a page, and, on my localhost version, I get tons of "Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'SYSTEM'@'localhost' (using password: NO) in C:\wamp\www\cms\admin\create.php  on line 14" for creating pages. I really only get 4, but still.</p>
<p>Help, and also, I emailed you before about WordPress.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
