<?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: PHP &amp; MySQL Tutorial 08: Mysql Login system concept</title>
	<atom:link href="http://kloplop321.com/php-tutorials/index.php/2010/03/12/php-mysql-tutorial-08-mysql-login-system-concept/feed/" rel="self" type="application/rss+xml" />
	<link>http://kloplop321.com/php-tutorials/index.php/2010/03/12/php-mysql-tutorial-08-mysql-login-system-concept/</link>
	<description>PHP video tutorials, for everyone.</description>
	<lastBuildDate>Tue, 17 Aug 2010 02:58:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: PHP Tutorials By Kloplop321 &#187; Blog Archive &#187; PHP &#38; MySQL Tutorial 12: Logging into a Basic Blog</title>
		<link>http://kloplop321.com/php-tutorials/index.php/2010/03/12/php-mysql-tutorial-08-mysql-login-system-concept/comment-page-1/#comment-265</link>
		<dc:creator>PHP Tutorials By Kloplop321 &#187; Blog Archive &#187; PHP &#38; MySQL Tutorial 12: Logging into a Basic Blog</dc:creator>
		<pubDate>Sun, 04 Jul 2010 04:17:56 +0000</pubDate>
		<guid isPermaLink="false">http://kloplop321.com/php-tutorials/?p=190#comment-265</guid>
		<description>[...] future tools for the blog administration that will be shown in future tutorials. You may refer to Tutorial 8(Login Concept) as we go though this [...]</description>
		<content:encoded><![CDATA[<p>[...] future tools for the blog administration that will be shown in future tutorials. You may refer to Tutorial 8(Login Concept) as we go though this [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sivaeb</title>
		<link>http://kloplop321.com/php-tutorials/index.php/2010/03/12/php-mysql-tutorial-08-mysql-login-system-concept/comment-page-1/#comment-253</link>
		<dc:creator>Sivaeb</dc:creator>
		<pubDate>Thu, 03 Jun 2010 15:46:03 +0000</pubDate>
		<guid isPermaLink="false">http://kloplop321.com/php-tutorials/?p=190#comment-253</guid>
		<description>Yes it clear it up thanks</description>
		<content:encoded><![CDATA[<p>Yes it clear it up thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kloplop321</title>
		<link>http://kloplop321.com/php-tutorials/index.php/2010/03/12/php-mysql-tutorial-08-mysql-login-system-concept/comment-page-1/#comment-252</link>
		<dc:creator>Kloplop321</dc:creator>
		<pubDate>Thu, 03 Jun 2010 15:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://kloplop321.com/php-tutorials/?p=190#comment-252</guid>
		<description>This usually happens when you have a variable in the SESSION that doesn&#039;t exist right now
So like $_SESSION[&#039;username&#039;], the username variable obviously will not be available when the user is not logged in. So, in order to address this issue,
you do
if(isset($_SESSION[&#039;username&#039;])){
//do code here
}
this checks to see if the variable exists(is set) then you are safe to access it. This is only a notice, so it doesn&#039;t matter much in the long run. 
The reason why you are seeing notices is because in your php.ini (php settings file) the error reporting is most likely set to E_ALL, you can change it to E_ERROR and just have a filter so you don&#039;t see the notices. I have the error reporting so it doesn&#039;t show these notices. 

As you can see by my tutorial, I am only seeing if the session variable, isin, is set to 1.
if($_SESSION[&#039;isin&#039;] == 1){
Now, if the variable does not exist(undefined index, meaning isin doesn&#039;t exist), then it will return false for that variable. 
The computer now sees it as 
if(false == 1)
logically false is 0, and 0 is not 1, so it does not execute the code that should happen when &#039;isin&#039; is set to true or 1. 

Does that help your understanding?</description>
		<content:encoded><![CDATA[<p>This usually happens when you have a variable in the SESSION that doesn&#8217;t exist right now<br />
So like $_SESSION['username'], the username variable obviously will not be available when the user is not logged in. So, in order to address this issue,<br />
you do<br />
if(isset($_SESSION['username'])){<br />
//do code here<br />
}<br />
this checks to see if the variable exists(is set) then you are safe to access it. This is only a notice, so it doesn&#8217;t matter much in the long run.<br />
The reason why you are seeing notices is because in your php.ini (php settings file) the error reporting is most likely set to E_ALL, you can change it to E_ERROR and just have a filter so you don&#8217;t see the notices. I have the error reporting so it doesn&#8217;t show these notices. </p>
<p>As you can see by my tutorial, I am only seeing if the session variable, isin, is set to 1.<br />
if($_SESSION['isin'] == 1){<br />
Now, if the variable does not exist(undefined index, meaning isin doesn&#8217;t exist), then it will return false for that variable.<br />
The computer now sees it as<br />
if(false == 1)<br />
logically false is 0, and 0 is not 1, so it does not execute the code that should happen when &#8216;isin&#8217; is set to true or 1. </p>
<p>Does that help your understanding?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sivaeb</title>
		<link>http://kloplop321.com/php-tutorials/index.php/2010/03/12/php-mysql-tutorial-08-mysql-login-system-concept/comment-page-1/#comment-251</link>
		<dc:creator>Sivaeb</dc:creator>
		<pubDate>Thu, 03 Jun 2010 14:51:17 +0000</pubDate>
		<guid isPermaLink="false">http://kloplop321.com/php-tutorials/?p=190#comment-251</guid>
		<description>It seems to be when I log out or are not logged in.</description>
		<content:encoded><![CDATA[<p>It seems to be when I log out or are not logged in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sivaeb</title>
		<link>http://kloplop321.com/php-tutorials/index.php/2010/03/12/php-mysql-tutorial-08-mysql-login-system-concept/comment-page-1/#comment-250</link>
		<dc:creator>Sivaeb</dc:creator>
		<pubDate>Thu, 03 Jun 2010 14:36:01 +0000</pubDate>
		<guid isPermaLink="false">http://kloplop321.com/php-tutorials/?p=190#comment-250</guid>
		<description>For some reason I keep getting an Error...
Notice: Undefined index: isin in C:\wamp\www\neighborhoodbusinessguide\index.php on line 30</description>
		<content:encoded><![CDATA[<p>For some reason I keep getting an Error&#8230;<br />
Notice: Undefined index: isin in C:\wamp\www\neighborhoodbusinessguide\index.php on line 30</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kloplop321</title>
		<link>http://kloplop321.com/php-tutorials/index.php/2010/03/12/php-mysql-tutorial-08-mysql-login-system-concept/comment-page-1/#comment-249</link>
		<dc:creator>Kloplop321</dc:creator>
		<pubDate>Fri, 28 May 2010 18:33:48 +0000</pubDate>
		<guid isPermaLink="false">http://kloplop321.com/php-tutorials/?p=190#comment-249</guid>
		<description>I am sorry about that. I learned from that, thanks to commentators like you from youtube. I have been trying to minimize all distractions like that as I have been working on my future tutorials.</description>
		<content:encoded><![CDATA[<p>I am sorry about that. I learned from that, thanks to commentators like you from youtube. I have been trying to minimize all distractions like that as I have been working on my future tutorials.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://kloplop321.com/php-tutorials/index.php/2010/03/12/php-mysql-tutorial-08-mysql-login-system-concept/comment-page-1/#comment-248</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 28 May 2010 18:21:11 +0000</pubDate>
		<guid isPermaLink="false">http://kloplop321.com/php-tutorials/?p=190#comment-248</guid>
		<description>This tutorial was extremely distracting and ultimately useless.  I&#039;m sure the information is good enough, but your windows are transparent, your background changes every minute, and the camera follows the mouse around while we&#039;re attempting to read your code... this was completely unwatchable.</description>
		<content:encoded><![CDATA[<p>This tutorial was extremely distracting and ultimately useless.  I&#8217;m sure the information is good enough, but your windows are transparent, your background changes every minute, and the camera follows the mouse around while we&#8217;re attempting to read your code&#8230; this was completely unwatchable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haley Schillig</title>
		<link>http://kloplop321.com/php-tutorials/index.php/2010/03/12/php-mysql-tutorial-08-mysql-login-system-concept/comment-page-1/#comment-204</link>
		<dc:creator>Haley Schillig</dc:creator>
		<pubDate>Tue, 27 Apr 2010 21:37:20 +0000</pubDate>
		<guid isPermaLink="false">http://kloplop321.com/php-tutorials/?p=190#comment-204</guid>
		<description>I&#039;m currently still in the making of a website.
When will you post the registering part?
Out of everyones, your tutorials are the only ones that work and I WOULD LOVE to see the registering part.
Your tutorials are so easier to understand and very organized.
And I think the login system is the hardest part because it&#039;s what your whole site is about..
Please email me back and let me know if you are going to make a tutorial for the registering part (:
I sure hope you are still giving out tutorials. Thanks so much&lt;3</description>
		<content:encoded><![CDATA[<p>I&#8217;m currently still in the making of a website.<br />
When will you post the registering part?<br />
Out of everyones, your tutorials are the only ones that work and I WOULD LOVE to see the registering part.<br />
Your tutorials are so easier to understand and very organized.<br />
And I think the login system is the hardest part because it&#8217;s what your whole site is about..<br />
Please email me back and let me know if you are going to make a tutorial for the registering part (:<br />
I sure hope you are still giving out tutorials. Thanks so much&lt;3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles</title>
		<link>http://kloplop321.com/php-tutorials/index.php/2010/03/12/php-mysql-tutorial-08-mysql-login-system-concept/comment-page-1/#comment-77</link>
		<dc:creator>Charles</dc:creator>
		<pubDate>Tue, 16 Mar 2010 01:55:27 +0000</pubDate>
		<guid isPermaLink="false">http://kloplop321.com/php-tutorials/?p=190#comment-77</guid>
		<description>Very nice tutorial!</description>
		<content:encoded><![CDATA[<p>Very nice tutorial!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
