<?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: Tutorial: PHP/mySQL Membership System</title>
	<atom:link href="http://gigaspartan.com/2008/05/28/test/feed/" rel="self" type="application/rss+xml" />
	<link>http://gigaspartan.com/2008/05/28/test/</link>
	<description>You source for web news and answers.</description>
	<lastBuildDate>Fri, 27 Apr 2012 14:30:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: 15 User Authentication Tutorials &#124; PHPRadar.com - The Best Collection of PHP Tutorials on the Web</title>
		<link>http://gigaspartan.com/2008/05/28/test/#comment-203</link>
		<dc:creator>15 User Authentication Tutorials &#124; PHPRadar.com - The Best Collection of PHP Tutorials on the Web</dc:creator>
		<pubDate>Wed, 21 Dec 2011 22:24:22 +0000</pubDate>
		<guid isPermaLink="false">http://75.125.133.162/~giga/?p=6#comment-203</guid>
		<description>[...] PHP/MySQL Membership System [...]</description>
		<content:encoded><![CDATA[<p>[...] PHP/MySQL Membership System [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ciprian</title>
		<link>http://gigaspartan.com/2008/05/28/test/#comment-201</link>
		<dc:creator>Ciprian</dc:creator>
		<pubDate>Fri, 09 Dec 2011 19:06:28 +0000</pubDate>
		<guid isPermaLink="false">http://75.125.133.162/~giga/?p=6#comment-201</guid>
		<description>Hello, 

I would like to use the above tutorial. I noticed that it was posted in 2008. Are there any changes that need to be made in the code? Any updates?</description>
		<content:encoded><![CDATA[<p>Hello, </p>
<p>I would like to use the above tutorial. I noticed that it was posted in 2008. Are there any changes that need to be made in the code? Any updates?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sentinel</title>
		<link>http://gigaspartan.com/2008/05/28/test/#comment-177</link>
		<dc:creator>Sentinel</dc:creator>
		<pubDate>Sun, 01 May 2011 20:00:06 +0000</pubDate>
		<guid isPermaLink="false">http://75.125.133.162/~giga/?p=6#comment-177</guid>
		<description>Great but how do i remove members?</description>
		<content:encoded><![CDATA[<p>Great but how do i remove members?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kent</title>
		<link>http://gigaspartan.com/2008/05/28/test/#comment-172</link>
		<dc:creator>Kent</dc:creator>
		<pubDate>Thu, 07 Apr 2011 07:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://75.125.133.162/~giga/?p=6#comment-172</guid>
		<description>Thanks for the tutorial.

Your tutorial was very helpful although I have an additional level of security that I hope I can introduce into the code.

I am providing a service to a vertical market.  My customers are the businesses that have subscribed to my service. The users are employees of those businesses.

I have a table with my customers (businesses) that has a company code and a company name.
I also have a user table that contains all the fields specified in your tutorial plus an additional field, company code. This table contains all users for all companies.

When a user logs in, they need to be prompted for their company code, their username, and their password. I added the check for company code, using the same format as used for the other fields, followed by the code for user and password.

The login will accomplish two purposes.  The first is authentication. The second is to identify the user with my customer, the company. This will insure that users of one customer do not have access to user or customer information from other companies.

Do you see any problem with the logic I described above?

Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks for the tutorial.</p>
<p>Your tutorial was very helpful although I have an additional level of security that I hope I can introduce into the code.</p>
<p>I am providing a service to a vertical market.  My customers are the businesses that have subscribed to my service. The users are employees of those businesses.</p>
<p>I have a table with my customers (businesses) that has a company code and a company name.<br />
I also have a user table that contains all the fields specified in your tutorial plus an additional field, company code. This table contains all users for all companies.</p>
<p>When a user logs in, they need to be prompted for their company code, their username, and their password. I added the check for company code, using the same format as used for the other fields, followed by the code for user and password.</p>
<p>The login will accomplish two purposes.  The first is authentication. The second is to identify the user with my customer, the company. This will insure that users of one customer do not have access to user or customer information from other companies.</p>
<p>Do you see any problem with the logic I described above?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vaz</title>
		<link>http://gigaspartan.com/2008/05/28/test/#comment-129</link>
		<dc:creator>vaz</dc:creator>
		<pubDate>Wed, 15 Dec 2010 18:52:11 +0000</pubDate>
		<guid isPermaLink="false">http://75.125.133.162/~giga/?p=6#comment-129</guid>
		<description>Thi is great.  Appreciate the hardwork.  I am a newbie and I am trying to create a mod to your registration script.  I would like to have the script populate the form and then permit changes.  Obviously, I am not doing it correctly.  Wondering if you might have a sample of same.
Thanks.</description>
		<content:encoded><![CDATA[<p>Thi is great.  Appreciate the hardwork.  I am a newbie and I am trying to create a mod to your registration script.  I would like to have the script populate the form and then permit changes.  Obviously, I am not doing it correctly.  Wondering if you might have a sample of same.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will Knight</title>
		<link>http://gigaspartan.com/2008/05/28/test/#comment-123</link>
		<dc:creator>Will Knight</dc:creator>
		<pubDate>Wed, 08 Dec 2010 04:52:44 +0000</pubDate>
		<guid isPermaLink="false">http://75.125.133.162/~giga/?p=6#comment-123</guid>
		<description>It&#039;s amazing how you work, Thanks a lot.</description>
		<content:encoded><![CDATA[<p>It&#8217;s amazing how you work, Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nik</title>
		<link>http://gigaspartan.com/2008/05/28/test/#comment-92</link>
		<dc:creator>nik</dc:creator>
		<pubDate>Sat, 27 Feb 2010 20:04:15 +0000</pubDate>
		<guid isPermaLink="false">http://75.125.133.162/~giga/?p=6#comment-92</guid>
		<description>Srry I have a question I&#039;m stuck with where would I save my database so the blog can access it. And is there anything I need to enable in the php.ini file.

thanks</description>
		<content:encoded><![CDATA[<p>Srry I have a question I&#8217;m stuck with where would I save my database so the blog can access it. And is there anything I need to enable in the php.ini file.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Papi</title>
		<link>http://gigaspartan.com/2008/05/28/test/#comment-90</link>
		<dc:creator>Papi</dc:creator>
		<pubDate>Mon, 25 Jan 2010 09:06:36 +0000</pubDate>
		<guid isPermaLink="false">http://75.125.133.162/~giga/?p=6#comment-90</guid>
		<description>For administration use phpMyAdmin</description>
		<content:encoded><![CDATA[<p>For administration use phpMyAdmin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth</title>
		<link>http://gigaspartan.com/2008/05/28/test/#comment-87</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Sat, 31 Oct 2009 22:59:28 +0000</pubDate>
		<guid isPermaLink="false">http://75.125.133.162/~giga/?p=6#comment-87</guid>
		<description>looooooooooooooooooooooooooooooooove iiiiiiiiiiiiiiiiiiiiiiiiiit!!!!!!!!!!!!!!!!!!11</description>
		<content:encoded><![CDATA[<p>looooooooooooooooooooooooooooooooove iiiiiiiiiiiiiiiiiiiiiiiiiit!!!!!!!!!!!!!!!!!!11</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Oldham</title>
		<link>http://gigaspartan.com/2008/05/28/test/#comment-86</link>
		<dc:creator>Erik Oldham</dc:creator>
		<pubDate>Mon, 14 Sep 2009 17:45:11 +0000</pubDate>
		<guid isPermaLink="false">http://75.125.133.162/~giga/?p=6#comment-86</guid>
		<description>I keep getting this error on the login page...

Warning: Cannot modify header information - headers already sent by (output started at /home2/eoldhamn/public_html/mgymnastics/memeber/conf.inc.php:2) in /home2/eoldhamn/public_html/mgymnastics/memeber/login.php on line 33

I also get it on register page....
Warning: Cannot modify header information - headers already sent by (output started at /home2/eoldhamn/public_html/mgymnastics/memeber/conf.inc.php:2) in /home2/eoldhamn/public_html/mgymnastics/memeber/register.php on line 39


here is my con.inc.php file...

&lt;?php
$db_user = &quot;eoldhamn&quot;; // Username
$db_pass = &quot;741984&quot;; // Password
$db_database = &quot;eoldhamn_address&quot;; // Database Name
$db_host = &quot;localhost&quot;; // Server Hostname
$db_connect = mysql_connect ($db_host, $db_user, $db_pass); // Connects to the database.
$db_select = mysql_select_db ($db_database); // Selects the database.
 
function form($data) { // Prevents SQL Injection
   global $db_connect;
   $data = ereg_replace(&quot;[\&#039;\&quot;)(;&#124;`,]&quot;, &quot;&quot;, $data);
   $data = mysql_real_escape_string(trim($data), $db_connect);
   return stripslashes($data);
}
?&gt;</description>
		<content:encoded><![CDATA[<p>I keep getting this error on the login page&#8230;</p>
<p>Warning: Cannot modify header information &#8211; headers already sent by (output started at /home2/eoldhamn/public_html/mgymnastics/memeber/conf.inc.php:2) in /home2/eoldhamn/public_html/mgymnastics/memeber/login.php on line 33</p>
<p>I also get it on register page&#8230;.<br />
Warning: Cannot modify header information &#8211; headers already sent by (output started at /home2/eoldhamn/public_html/mgymnastics/memeber/conf.inc.php:2) in /home2/eoldhamn/public_html/mgymnastics/memeber/register.php on line 39</p>
<p>here is my con.inc.php file&#8230;</p>
<p>&lt;?php<br />
$db_user = &#8220;eoldhamn&#8221;; // Username<br />
$db_pass = &#8220;741984&#8243;; // Password<br />
$db_database = &#8220;eoldhamn_address&#8221;; // Database Name<br />
$db_host = &#8220;localhost&#8221;; // Server Hostname<br />
$db_connect = mysql_connect ($db_host, $db_user, $db_pass); // Connects to the database.<br />
$db_select = mysql_select_db ($db_database); // Selects the database.</p>
<p>function form($data) { // Prevents SQL Injection<br />
   global $db_connect;<br />
   $data = ereg_replace(&#8220;[\'\")(;|`,]&#8220;, &#8220;&#8221;, $data);<br />
   $data = mysql_real_escape_string(trim($data), $db_connect);<br />
   return stripslashes($data);<br />
}<br />
?&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

