<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Building Browsergames - Latest Comments in Building Browsergames: The Registration Page (PHP)</title><link>http://bbgames.disqus.com/</link><description></description><language>en</language><lastBuildDate>Wed, 25 Nov 2009 17:10:48 -0000</lastBuildDate><item><title>Re: Building Browsergames: The Registration Page (PHP)</title><link>http://buildingbrowsergames.com/2008/04/17/building-browsergames-the-registration-page-php/#comment-24086255</link><description>I've worked out the above problem, but that's by doing things a bit differently than the example in this tutorial, still don't know why I got this error.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marius</dc:creator><pubDate>Wed, 25 Nov 2009 17:10:48 -0000</pubDate></item><item><title>Re: Building Browsergames: The Registration Page (PHP)</title><link>http://buildingbrowsergames.com/2008/04/17/building-browsergames-the-registration-page-php/#comment-24029313</link><description>I'm having trouble with your example on one line, and the newly registered user does not get inserted to the table.&lt;br&gt;&lt;br&gt;"Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given"&lt;br&gt;&lt;br&gt;The line that gives this error is "list($count) = mysql_fetch_row($result);", line 18 in your example&lt;br&gt;&lt;br&gt;I also get the message Congratulations, you registered successfully! though that is not true.&lt;br&gt;&lt;br&gt;I've copied your code, so if you guys get the code to work as it should, then I guess it's my DB that's the cause of this problem, but I have no idea what it could be... Anyone able to help me?&lt;br&gt;&lt;br&gt;My table is called users, and I have id int, username varchar and password varchar as fields.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marius</dc:creator><pubDate>Wed, 25 Nov 2009 08:48:09 -0000</pubDate></item><item><title>Re: Building Browsergames: The Registration Page (PHP)</title><link>http://buildingbrowsergames.com/2008/04/17/building-browsergames-the-registration-page-php/#comment-17311541</link><description>This code is supposed to be getting saved *into* register.php - where are&lt;br&gt;you saving it? If you're saving it somewhere else you'll want to adjust the&lt;br&gt;name of the script your form is POSTing to as well.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bbgames</dc:creator><pubDate>Thu, 24 Sep 2009 15:54:03 -0000</pubDate></item><item><title>Re: Building Browsergames: The Registration Page (PHP)</title><link>http://buildingbrowsergames.com/2008/04/17/building-browsergames-the-registration-page-php/#comment-17300909</link><description>whats about the page register.php you are posting the registration data to?&lt;br&gt;if i run this code and fill in the registration form, after clicking at "register!" theres an error, because page register.php doesnt exist</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael</dc:creator><pubDate>Thu, 24 Sep 2009 13:17:00 -0000</pubDate></item><item><title>Re: Building Browsergames: The Registration Page (PHP)</title><link>http://buildingbrowsergames.com/2008/04/17/building-browsergames-the-registration-page-php/#comment-16409549</link><description>Thanks for the guideline of creating browsergame. I was looking for it. I have successfully followed the first six steps. But I couldn’t create the INSERT query. I have checked the code several times. I have exactly follow what you have written. But it just didn’t work. Can you please help me to find out the error?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">horsesforsale</dc:creator><pubDate>Fri, 11 Sep 2009 03:55:07 -0000</pubDate></item><item><title>Re: Building Browsergames: The Registration Page (PHP)</title><link>http://buildingbrowsergames.com/2008/04/17/building-browsergames-the-registration-page-php/#comment-12644421</link><description>Here is a picture of what The PHP Admin screen looks like. &lt;br&gt;&lt;br&gt;&lt;a href="http://yfrog.com/5sphpadminp" rel="nofollow"&gt;http://yfrog.com/5sphpadminp&lt;/a&gt;&lt;br&gt;&lt;br&gt;I clicked on User Priviliges so thats why its Orange (I think).</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">HughCompton</dc:creator><pubDate>Tue, 14 Jul 2009 14:13:12 -0000</pubDate></item><item><title>Re: Building Browsergames: The Registration Page (PHP)</title><link>http://buildingbrowsergames.com/2008/04/17/building-browsergames-the-registration-page-php/#comment-12644114</link><description>I don't understand where I shoulkd input the SQl you have posted. I signed up to a free package with PHP My Admin support and thats all set up but i dont know where to input what you have posted.&lt;br&gt;&lt;br&gt;Please Help</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">HughCompton</dc:creator><pubDate>Tue, 14 Jul 2009 14:05:01 -0000</pubDate></item><item><title>Re: Building Browsergames: The Registration Page (PHP)</title><link>http://buildingbrowsergames.com/2008/04/17/building-browsergames-the-registration-page-php/#comment-8635779</link><description>If you're getting that error, it means that something is wrong with your&lt;br&gt;connection to MySQL - double check the values that you passed to&lt;br&gt;mysql_connect.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bbgames</dc:creator><pubDate>Thu, 23 Apr 2009 22:23:24 -0000</pubDate></item><item><title>Re: Building Browsergames: The Registration Page (PHP)</title><link>http://buildingbrowsergames.com/2008/04/17/building-browsergames-the-registration-page-php/#comment-8634424</link><description>Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/a8891953/public_html/register.php on line 15&lt;br&gt;&lt;br&gt;That is what I get when trying to register.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gradient</dc:creator><pubDate>Thu, 23 Apr 2009 21:25:08 -0000</pubDate></item><item><title>Re: Building Browsergames: The Registration Page (PHP)</title><link>http://buildingbrowsergames.com/2008/04/17/building-browsergames-the-registration-page-php/#comment-5087552</link><description>Thanks for the heads-up, Graham!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bbgames</dc:creator><pubDate>Mon, 12 Jan 2009 23:30:18 -0000</pubDate></item><item><title>Re: Building Browsergames: The Registration Page (PHP)</title><link>http://buildingbrowsergames.com/2008/04/17/building-browsergames-the-registration-page-php/#comment-5085231</link><description>use SHA1 instead of MD5.  Event with Salts, MD5 is still vulnerable to collision attacks, and should not be used for security purposes.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Graham</dc:creator><pubDate>Mon, 12 Jan 2009 21:31:42 -0000</pubDate></item><item><title>Re: Building Browsergames: The Registration Page (PHP)</title><link>http://buildingbrowsergames.com/2008/04/17/building-browsergames-the-registration-page-php/#comment-3089084</link><description>Hi John, and thanks for the tips!&lt;br&gt;&lt;br&gt;I wasn't aware that md5's were vulnerable to rainbow tables - thanks for pointing that out. I'll be sure to write a follow-up post as soon as possible clearing up why you should be doing more than just md5ing your data.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bbgames</dc:creator><pubDate>Sun, 13 Jul 2008 00:52:46 -0000</pubDate></item><item><title>Re: Building Browsergames: The Registration Page (PHP)</title><link>http://buildingbrowsergames.com/2008/04/17/building-browsergames-the-registration-page-php/#comment-3089083</link><description>The MD5 hash doesn't actually protect you if someone were able to dump your table of users or gain access to the database in some fashion.&lt;br&gt;&lt;br&gt;That's because there exist large hash dictionaries available to hackers which have every word in the dictionary and all common names already pre-hashed using common hashes like MD5. The hacker can search through the list of hashed user passwords for matches in the hash dictionary and then consult the dictionary whenever there is a match to see what word or name was used as the original (unhashed) password. It won't allow them access to accounts where people used strong passwords, but think how many people use the name of a spouse or a common word as a password.&lt;br&gt;&lt;br&gt;That's why you usually use MD5 in combination with a random "salt" value. You take the user's password (e.g. porcupine), you prepend a randomly generated number or string (e.g. 352) and then MD5 hash that (e.g. 352porcupine =&amp;gt; 'alaskdf5...') saving both the randomly generated number and the hash. Then whenever the user submits a password you again prepend the same salt value in front of it and see if it hashes to the same value again. The random value in front of each and every password stored then makes the hash dictionary useless.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Munsch</dc:creator><pubDate>Sat, 12 Jul 2008 23:59:02 -0000</pubDate></item></channel></rss>