<?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 simple login script with php and mysql</title>
	<atom:link href="http://www.ineedtutorials.com/code/php/creating-a-simple-login-script-with-php-and-mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ineedtutorials.com/code/php/creating-a-simple-login-script-with-php-and-mysql</link>
	<description>Information made easy</description>
	<lastBuildDate>Mon, 06 Sep 2010 04:27:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Priyanka</title>
		<link>http://www.ineedtutorials.com/code/php/creating-a-simple-login-script-with-php-and-mysql/comment-page-2#comment-24599</link>
		<dc:creator>Priyanka</dc:creator>
		<pubDate>Tue, 03 Aug 2010 09:03:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.ineedtutorials.com/articles/creating-a-simple-login-script-with-php-and-mysql#comment-24599</guid>
		<description>i have problem in login.php, after i click on login button nothing will disply, if i type wrong user name &amp; password it&#039;s not showing error message,
pls help me</description>
		<content:encoded><![CDATA[<p>i have problem in login.php, after i click on login button nothing will disply, if i type wrong user name &amp; password it&#8217;s not showing error message,<br />
pls help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wes O</title>
		<link>http://www.ineedtutorials.com/code/php/creating-a-simple-login-script-with-php-and-mysql/comment-page-2#comment-24312</link>
		<dc:creator>Wes O</dc:creator>
		<pubDate>Wed, 21 Jul 2010 18:08:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.ineedtutorials.com/articles/creating-a-simple-login-script-with-php-and-mysql#comment-24312</guid>
		<description>Ok, so how do I add more user names and passwords?</description>
		<content:encoded><![CDATA[<p>Ok, so how do I add more user names and passwords?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tatsu</title>
		<link>http://www.ineedtutorials.com/code/php/creating-a-simple-login-script-with-php-and-mysql/comment-page-2#comment-24143</link>
		<dc:creator>Tatsu</dc:creator>
		<pubDate>Tue, 13 Jul 2010 14:42:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.ineedtutorials.com/articles/creating-a-simple-login-script-with-php-and-mysql#comment-24143</guid>
		<description>&lt;blockquote cite=&quot;#commentbody-21535&quot;&gt;
&lt;strong&gt;&lt;a href=&quot;#comment-21535&quot; rel=&quot;nofollow&quot;&gt;kenneth &lt;/a&gt; :&lt;/strong&gt;Please can any one help me out? Below is the error that i keep on getting each time that i try to login.
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\phpMyAdmin\olu\login.php on line 20Wrong username or password! 
I look forward to hearing from you. Thanks in advance and God bless…&lt;/blockquote&gt;

Like its telling you, you have entered the wrong username or pass. Have you typed the correct username and pass? If yes...try to change it in phpmyadmin!

I hope I helped!

Cya ;)</description>
		<content:encoded><![CDATA[<blockquote cite="#commentbody-21535"><p>
<strong><a href="#comment-21535" rel="nofollow">kenneth </a> :</strong>Please can any one help me out? Below is the error that i keep on getting each time that i try to login.<br />
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\phpMyAdmin\olu\login.php on line 20Wrong username or password!<br />
I look forward to hearing from you. Thanks in advance and God bless…</p></blockquote>
<p>Like its telling you, you have entered the wrong username or pass. Have you typed the correct username and pass? If yes&#8230;try to change it in phpmyadmin!</p>
<p>I hope I helped!</p>
<p>Cya <img src='http://www.ineedtutorials.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tatsu</title>
		<link>http://www.ineedtutorials.com/code/php/creating-a-simple-login-script-with-php-and-mysql/comment-page-2#comment-24142</link>
		<dc:creator>Tatsu</dc:creator>
		<pubDate>Tue, 13 Jul 2010 14:40:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.ineedtutorials.com/articles/creating-a-simple-login-script-with-php-and-mysql#comment-24142</guid>
		<description>Howdy, I would like to ask something...

how would i change the code that i would have 3 kinds of permisson:
(1)admin = create/delete users, news  
(2)moderator = edit,post news, edit users
(3)user = can wiew news

by default the user status would be 3

For example:
if(status=1){
 echo&quot;&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;Add user&lt;/a&gt;&quot;;
}
else if (status=2){
 echo&quot;&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;Add news&lt;/a&gt;;
}
}else{
echo &quot;&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;Logout&lt;/a&gt;&quot;;


tnx for your support!</description>
		<content:encoded><![CDATA[<p>Howdy, I would like to ask something&#8230;</p>
<p>how would i change the code that i would have 3 kinds of permisson:<br />
(1)admin = create/delete users, news<br />
(2)moderator = edit,post news, edit users<br />
(3)user = can wiew news</p>
<p>by default the user status would be 3</p>
<p>For example:<br />
if(status=1){<br />
 echo&#8221;<a href="#" rel="nofollow">Add user</a>&#8220;;<br />
}<br />
else if (status=2){<br />
 echo&#8221;<a href="#" rel="nofollow">Add news</a>;<br />
}<br />
}else{<br />
echo &#8220;<a href="#" rel="nofollow">Logout</a>&#8220;;</p>
<p>tnx for your support!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kenneth</title>
		<link>http://www.ineedtutorials.com/code/php/creating-a-simple-login-script-with-php-and-mysql/comment-page-2#comment-21535</link>
		<dc:creator>kenneth</dc:creator>
		<pubDate>Wed, 28 Apr 2010 10:34:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.ineedtutorials.com/articles/creating-a-simple-login-script-with-php-and-mysql#comment-21535</guid>
		<description>Please can any one help me out? Below is the error that i keep on getting each time that i try to login.

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\phpMyAdmin\olu\login.php on line 20
Wrong username or password! 

I look forward to hearing from you. Thanks in advance and God bless...</description>
		<content:encoded><![CDATA[<p>Please can any one help me out? Below is the error that i keep on getting each time that i try to login.</p>
<p>Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\phpMyAdmin\olu\login.php on line 20<br />
Wrong username or password! </p>
<p>I look forward to hearing from you. Thanks in advance and God bless&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dominic</title>
		<link>http://www.ineedtutorials.com/code/php/creating-a-simple-login-script-with-php-and-mysql/comment-page-2#comment-19464</link>
		<dc:creator>Dominic</dc:creator>
		<pubDate>Fri, 19 Feb 2010 18:20:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.ineedtutorials.com/articles/creating-a-simple-login-script-with-php-and-mysql#comment-19464</guid>
		<description>Hello,

Could someone email me how to change the activation link to my own site?  Where do I put my website&#039;s address and in what file?

Thanks</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Could someone email me how to change the activation link to my own site?  Where do I put my website&#8217;s address and in what file?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pree</title>
		<link>http://www.ineedtutorials.com/code/php/creating-a-simple-login-script-with-php-and-mysql/comment-page-2#comment-18897</link>
		<dc:creator>pree</dc:creator>
		<pubDate>Wed, 03 Feb 2010 07:48:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.ineedtutorials.com/articles/creating-a-simple-login-script-with-php-and-mysql#comment-18897</guid>
		<description>how will I made entry of login in time and date in another table for authenticated user? plz help me its urgent.</description>
		<content:encoded><![CDATA[<p>how will I made entry of login in time and date in another table for authenticated user? plz help me its urgent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.ineedtutorials.com/code/php/creating-a-simple-login-script-with-php-and-mysql/comment-page-2#comment-18378</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Wed, 20 Jan 2010 20:49:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.ineedtutorials.com/articles/creating-a-simple-login-script-with-php-and-mysql#comment-18378</guid>
		<description>Okay, I&#039;m missing something.  

The script works fine with a simple index.php that simply calls the script.  However, if I put the login script call at the top of a very busy index.php, it displays all of the index.php file with the login form on top.  

How can I keep the index.php data from displaying until someone has logged in?

Thanks for all your efforts.</description>
		<content:encoded><![CDATA[<p>Okay, I&#8217;m missing something.  </p>
<p>The script works fine with a simple index.php that simply calls the script.  However, if I put the login script call at the top of a very busy index.php, it displays all of the index.php file with the login form on top.  </p>
<p>How can I keep the index.php data from displaying until someone has logged in?</p>
<p>Thanks for all your efforts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Jackson</title>
		<link>http://www.ineedtutorials.com/code/php/creating-a-simple-login-script-with-php-and-mysql/comment-page-2#comment-16798</link>
		<dc:creator>Lee Jackson</dc:creator>
		<pubDate>Sun, 13 Dec 2009 16:52:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.ineedtutorials.com/articles/creating-a-simple-login-script-with-php-and-mysql#comment-16798</guid>
		<description>?php 
// Start a session
session_start();
require_once (&#039;db_connect.inc.php&#039;);
require_once (&quot;functions.inc.php&quot;);
if($_SESSION[&#039;loginid&#039;]){
echo &quot;&quot;;
} else {
//else redirect to login page
header(&#039;Location: /login.php&#039;);
}</description>
		<content:encoded><![CDATA[<p>?php<br />
// Start a session<br />
session_start();<br />
require_once (&#8216;db_connect.inc.php&#8217;);<br />
require_once (&#8220;functions.inc.php&#8221;);<br />
if($_SESSION['loginid']){<br />
echo &#8220;&#8221;;<br />
} else {<br />
//else redirect to login page<br />
header(&#8216;Location: /login.php&#8217;);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Jackson</title>
		<link>http://www.ineedtutorials.com/code/php/creating-a-simple-login-script-with-php-and-mysql/comment-page-2#comment-16797</link>
		<dc:creator>Lee Jackson</dc:creator>
		<pubDate>Sun, 13 Dec 2009 16:51:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.ineedtutorials.com/articles/creating-a-simple-login-script-with-php-and-mysql#comment-16797</guid>
		<description>OK take 10, posted the wrong one:
put at </description>
		<content:encoded><![CDATA[<p>OK take 10, posted the wrong one:<br />
put at</p>
]]></content:encoded>
	</item>
</channel>
</rss>
