<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1021111" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1021111</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/site-member-section#comment-1131590</link>
    <description> &lt;p&gt;I may as well post my solution, it turns out that the password column was varchar 16 when the md5() algorithm encrypts a string into 32 characters. Therefore the script was trying to compare a 32 character password with a 16 character password in the database. I&#039;ve managed to get it all working. Its always the small things..&lt;/p&gt;
 </description>
     <pubDate>Sat, 17 May 2003 06:17:10 +0000</pubDate>
 <dc:creator>nuk3</dc:creator>
 <guid isPermaLink="false">comment 1131590 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/site-member-section#comment-1130049</link>
    <description> &lt;p&gt;the &#039;welcome to this area ...&#039; bit is outside any if/else statements so will always show no matter what happens&lt;/p&gt;
&lt;p&gt;you don&#039;t need if(!isset($username)) and if(isset($username)) &lt;/p&gt;
&lt;p&gt;just use one with an else&lt;br /&gt;
if(!isset($username)) { // or use (isset(&lt;br /&gt;
....&lt;br /&gt;
} else {&lt;br /&gt;
...&lt;br /&gt;
} // this should be the very last tag of the page unless you want stuff to always show&lt;br /&gt;
?&amp;gt;&lt;/p&gt;
&lt;p&gt;and place everything between the approtiate sections&lt;/p&gt;
 </description>
     <pubDate>Sat, 26 Apr 2003 04:12:29 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1130049 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/site-member-section#comment-1129991</link>
    <description> &lt;p&gt;Maybe this site may be of some help to you:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.evolt.org/article/Creating_a_Login_Script_with_PHP_4/17/19661/&quot; class=&quot;bb-url&quot;&gt;http://www.evolt.org/article/Creating_a_Login_Script_with_PHP_4/17/19661/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 25 Apr 2003 11:07:01 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1129991 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/site-member-section#comment-1129982</link>
    <description> &lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt; &lt;br /&gt;session_start&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;&lt;br /&gt;include(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;/home/silonet/public_html/includes/header.php\&quot;);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if(!isset(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$username&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)) {&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;div align=\&quot;center\&quot;&amp;gt;&amp;lt;h4&amp;gt; Login Required &amp;lt;/h4&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You must login to access this area of the site! &amp;lt;br&amp;gt;&lt;br /&gt;If you are not a registered user, &amp;lt;a href=\&quot;signup.php\&quot;&amp;gt;click here&amp;lt;/a&amp;gt; to sign up for instant access! &amp;lt;P&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;form method=\&quot;post\&quot; action=\&quot;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;PHP_SELF\&quot;]\&quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Username: &amp;lt;input type=\&quot;text\&quot; name=\&quot;username\&quot; size=\&quot;20\&quot;&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Password: &amp;amp;nbsp;&amp;lt;input type=\&quot;password\&quot; name=\&quot;password\&quot; SIZE=\&quot;20\&quot;&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type=\&quot;submit\&quot; value=\&quot;Log in\&quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/form&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; exit;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if (isset(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$username&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)) {&lt;br /&gt;&lt;br /&gt;session_register(\&quot;username\&quot;);&lt;br /&gt;session_register(\&quot;password\&quot;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = mysql_connect(\&quot;localhost\&quot;, \&quot;removed\&quot;, \&quot;removed\&quot;);&lt;br /&gt;&lt;br /&gt;if (!&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)&lt;br /&gt;echo \&quot;A conection to the database could not be made. Please try again later or contact the website administrator.\&quot;;&lt;br /&gt;&lt;br /&gt;mysql_select_db(\&quot;removed\&quot;);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = mysql_query(\&quot;SELECT * FROM member\&quot;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$myrow&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = mysql_fetch_array(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$password&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; == md5(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$password&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$myrow&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;password\&quot;] != &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$password&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; or &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$myrow&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;username\&quot;] != &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$username&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; mysql_error(); &lt;br /&gt;&amp;nbsp; session_unregister(\&quot;username\&quot;);&lt;br /&gt;&amp;nbsp; session_unregister(\&quot;password\&quot;);&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;lt;html&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;head&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;title&amp;gt; Access Denied &amp;lt;/title&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/head&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;h1&amp;gt; Access Denied &amp;lt;/h1&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;p&amp;gt;Your username and/or password is incorrect, or you are not a&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; registered user on this site. To try logging in again, click&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;a href=\&quot;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$PHP_SELF&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;&amp;gt;here&amp;lt;/a&amp;gt;. To register for instant&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; access, click &amp;lt;a href=\&quot;signup.php\&quot;&amp;gt;here&amp;lt;/a&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/html&amp;gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; exit;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; == logoff)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;session_unregister(\&quot;username\&quot;);&lt;br /&gt;session_unregister(\&quot;password\&quot;);&lt;br /&gt;session_destroy();&lt;br /&gt;}&lt;br /&gt;echo \&quot;Welcome to this area, soon to come will be a place to change your details such as password etc.. This login script will be implemented into my code snippet library (under construction) and eventually into my site for total interaction.\&quot;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;echo \&quot; &amp;lt;a href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$PHP_SELF&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;logoff&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;Log Off&amp;lt;/a&amp;gt;\&quot;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;include(\&quot;/home/silonet/public_html/includes/footer.php\&quot;); &lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;I&#039;ve rescipted it, but it still doesn&#039;t work. There is obviously no error ( I added in mysql_error(); ) and I&#039;m thinking its having problems comparing the two passwords.. &lt;a href=&quot;http://www.silonetwork.com/accesscontrol2.php&quot; class=&quot;bb-url&quot;&gt;http://www.silonetwork.com/accesscontrol2.php&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 25 Apr 2003 03:21:00 +0000</pubDate>
 <dc:creator>nuk3</dc:creator>
 <guid isPermaLink="false">comment 1129982 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/site-member-section#comment-1129980</link>
    <description> &lt;p&gt;I take it your password starts with md5&lt;/p&gt;
&lt;p&gt;try add mysql_error() in the result check &lt;/p&gt;
&lt;p&gt;if(!$result) { mysql_error(); ...  }&lt;/p&gt;
&lt;p&gt;the other thing to do is wrap the &#039;congrats your in&#039; bit in an else statement from the !$result above&lt;/p&gt;
&lt;p&gt;I tried the link you gave and got access denied, are you using cookies or anything that could be logging you in when you test it?&lt;/p&gt;
&lt;p&gt;just a side note, i wouldn&#039;t add the bit about don&#039;t hack ... if someone was going to they would hide behind a proxy server so what you have would mean nothing, maybe just add a note stating &#039;your ip has been recorded&#039; or something, or just do that if the name or p/w is wrong.&lt;br /&gt;
also take out the password value&lt;/p&gt;
 </description>
     <pubDate>Fri, 25 Apr 2003 02:41:48 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1129980 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/site-member-section#comment-1129978</link>
    <description> &lt;p&gt;I&#039;ve  just noticed that if I enter any combination of numbers in the login form it logs in even though that data doesn&#039;t exist in the database?!&lt;/p&gt;
 </description>
     <pubDate>Fri, 25 Apr 2003 01:33:00 +0000</pubDate>
 <dc:creator>nuk3</dc:creator>
 <guid isPermaLink="false">comment 1129978 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/site-member-section#comment-1129977</link>
    <description> &lt;p&gt;Well for some reason it cant compare the username and password entered on the form with the ones in the database.. Even more strangely when I enter 1 for the password and username it logs in.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.silonetwork.com/signup.php&quot; class=&quot;bb-url&quot;&gt;http://www.silonetwork.com/signup.php&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.silonetwork.com/accesscontrol.php&quot; class=&quot;bb-url&quot;&gt;http://www.silonetwork.com/accesscontrol.php&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 25 Apr 2003 01:29:50 +0000</pubDate>
 <dc:creator>nuk3</dc:creator>
 <guid isPermaLink="false">comment 1129977 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/site-member-section#comment-1129960</link>
    <description> &lt;p&gt;what errors are you getting (if any)&lt;/p&gt;
&lt;p&gt;mysql_select_db(&quot;####&quot;,$db); doesn&#039;t need the ,$db bit as you&#039;ve already opened the db by setting $db&lt;/p&gt;
&lt;p&gt;the mysql_query (SELECT tag) doesn&#039;t need the end part either, this part &lt;em&gt;);&quot;, $db&lt;/em&gt;  you&#039;ve already choosen the database opened and choosen the database&lt;/p&gt;
 </description>
     <pubDate>Thu, 24 Apr 2003 21:50:16 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1129960 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
