<?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"
	>
<channel>
	<title>Comments on: Authentication with PHP/MySQL</title>
	<atom:link href="http://teamtutorials.com/web-development-tutorials/php-tutorials/authentication-with-phpmysql/feed" rel="self" type="application/rss+xml" />
	<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/authentication-with-phpmysql</link>
	<description></description>
	<pubDate>Fri, 21 Nov 2008 08:27:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Spencer</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/authentication-with-phpmysql#comment-1725</link>
		<dc:creator>Spencer</dc:creator>
		<pubDate>Sun, 28 Sep 2008 03:50:47 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/web-development-tutorials/php-tutorials/authentication-with-phpmysql#comment-1725</guid>
		<description>You have to have the ; after 
$_SESSION['valid_user'] = $Email

That is why you are getting the error message.  Then you can troubleshoot the blank page ;)</description>
		<content:encoded><![CDATA[<p>You have to have the ; after<br />
$_SESSION['valid_user'] = $Email</p>
<p>That is why you are getting the error message.  Then you can troubleshoot the blank page <img src='http://teamtutorials.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gina</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/authentication-with-phpmysql#comment-1685</link>
		<dc:creator>Gina</dc:creator>
		<pubDate>Wed, 17 Sep 2008 16:46:45 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/web-development-tutorials/php-tutorials/authentication-with-phpmysql#comment-1685</guid>
		<description>If I put a ; after $Email it just displays a blank page</description>
		<content:encoded><![CDATA[<p>If I put a ; after $Email it just displays a blank page</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Ward</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/authentication-with-phpmysql#comment-1681</link>
		<dc:creator>John Ward</dc:creator>
		<pubDate>Tue, 16 Sep 2008 21:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/web-development-tutorials/php-tutorials/authentication-with-phpmysql#comment-1681</guid>
		<description>you forgot a ; after $EMail</description>
		<content:encoded><![CDATA[<p>you forgot a ; after $EMail</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gina</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/authentication-with-phpmysql#comment-1679</link>
		<dc:creator>Gina</dc:creator>
		<pubDate>Tue, 16 Sep 2008 18:50:28 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/web-development-tutorials/php-tutorials/authentication-with-phpmysql#comment-1679</guid>
		<description>Trying my code again

session_start();    
  
if (isset($_POST['Email']) &#38;&#38; isset($_POST['password']))   
{   
$Email = $_POST['Email'];   
$password = $_POST['password'];          
  
$conn = mysql_connect ("localhost", "bollaoil_custome", "92remotsuc21") or die('Cannot connect to the database because: ' . mysql_error());
mysql_select_db ("bollaoil_Customers");

$sql = mysql_query("select count(*) from customers   
where Email = '$Email' and Password = sha1('$password')") or die(mysql_error());           
  
$results = mysql_result($sql, "0");      
  
if ($results == 0){   
header( 'Location:loginfailed.php');   
}   
else  
{   
$_SESSION['valid_user'] = $Email  
header( 'Location:http://www.kingscarcare.com/beta1/coupon.php');
}</description>
		<content:encoded><![CDATA[<p>Trying my code again</p>
<p>session_start();    </p>
<p>if (isset($_POST['Email']) &amp;&amp; isset($_POST['password']))<br />
{<br />
$Email = $_POST['Email'];<br />
$password = $_POST['password'];          </p>
<p>$conn = mysql_connect (&#8221;localhost&#8221;, &#8220;bollaoil_custome&#8221;, &#8220;92remotsuc21&#8243;) or die(&#8217;Cannot connect to the database because: &#8216; . mysql_error());<br />
mysql_select_db (&#8221;bollaoil_Customers&#8221;);</p>
<p>$sql = mysql_query(&#8221;select count(*) from customers<br />
where Email = &#8216;$Email&#8217; and Password = sha1(&#8217;$password&#8217;)&#8221;) or die(mysql_error());           </p>
<p>$results = mysql_result($sql, &#8220;0&#8243;);      </p>
<p>if ($results == 0){<br />
header( &#8216;Location:loginfailed.php&#8217;);<br />
}<br />
else<br />
{<br />
$_SESSION['valid_user'] = $Email<br />
header( &#8216;Location:http://www.kingscarcare.com/beta1/coupon.php&#8217;);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gina</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/authentication-with-phpmysql#comment-1678</link>
		<dc:creator>Gina</dc:creator>
		<pubDate>Tue, 16 Sep 2008 18:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/web-development-tutorials/php-tutorials/authentication-with-phpmysql#comment-1678</guid>
		<description>I've used your site before with great results.  Now I'm trying to do this and have scoured my code a dozen times but cannot find why I'm getting this error:

Parse error: syntax error, unexpected T_STRING in cauthenticate.php on line 24

This is my code:
  

Line 24 of my code is 
header( 'Location:http://www.kingscarcare.com/beta1/coupon.php');

I have the semi-colon in place and I've triple checked all my brackets and quotes to see if one was left open.  I can't find the error, can you help!?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve used your site before with great results.  Now I&#8217;m trying to do this and have scoured my code a dozen times but cannot find why I&#8217;m getting this error:</p>
<p>Parse error: syntax error, unexpected T_STRING in cauthenticate.php on line 24</p>
<p>This is my code:</p>
<p>Line 24 of my code is<br />
header( &#8216;Location:http://www.kingscarcare.com/beta1/coupon.php&#8217;);</p>
<p>I have the semi-colon in place and I&#8217;ve triple checked all my brackets and quotes to see if one was left open.  I can&#8217;t find the error, can you help!?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daviduff</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/authentication-with-phpmysql#comment-736</link>
		<dc:creator>Daviduff</dc:creator>
		<pubDate>Sat, 05 Apr 2008 03:28:05 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/web-development-tutorials/php-tutorials/authentication-with-phpmysql#comment-736</guid>
		<description>Thanks for sharing. I've concerns about mysql_real_escape_string and authentication and try to find if it's essential to use it. I've found something but it's in french, but the code includes mysql_real_escape_string:

http://www.informatique911.com/prog/authentification-php-mysql.php

Thanks for any help.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing. I&#8217;ve concerns about mysql_real_escape_string and authentication and try to find if it&#8217;s essential to use it. I&#8217;ve found something but it&#8217;s in french, but the code includes mysql_real_escape_string:</p>
<p><a href="http://www.informatique911.com/prog/authentification-php-mysql.php" rel="nofollow">http://www.informatique911.com/prog/authentification-php-mysql.php</a></p>
<p>Thanks for any help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
