PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 13th, 2012, 12:49 AM
Goshinki Goshinki is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2012
Posts: 3 Goshinki User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 59 m 32 sec
Reputation Power: 0
Member registration DB/users can't log in

The problem: I have some php pages that make up a simple user registration, login, member area, and logout. Newly registered users are added to the database successfully but they can not log in.

The details: I have been following a pretty basic guide located here: knowledgesutra.com/discuss/tlddl-php-simple-login-tutorial-learn-simple-login.html
The php that has been taken from that site has not been modified in any way, so I will not clutter this thread with the code -- it can be viewed by using the link above. You'll need to put an "http" for that link to work (yep I'm dancing around the rules... this may be my first post but I have to give out some URLs here in order to fully describe the problem.)

If the script can not match up the login details to the database, the it echos Sorry, could not log you in. Wrong login information. This is what is happening to me now.

I already checked for the obvious... The values in my config.php are correct and it is establishing a connection to the database. The user name, password and email I registered with to test it can be seen in the database, and I am using those exact values to attempt to log in. I deleted and remade the table twice.

I took two screen shots of the MySQL database for ease in solving this problem:

s1205.photobucket.com/albums/bb423/kevinfell1/?action=view&current=entries.png

s1205.photobucket.com/albums/bb423/kevinfell1/?action=view&current=entries.png

Reply With Quote
  #2  
Old March 13th, 2012, 11:33 AM
Goshinki Goshinki is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2012
Posts: 3 Goshinki User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 59 m 32 sec
Reputation Power: 0
If you're still having problems viewing those links I tried to post just let me know and I'll come up with a way to provide you the relevant information we're gonna need to solve this.

Not letting new comers to the forum post URLS is not very newbie friendly.

Reply With Quote
  #3  
Old March 13th, 2012, 12:04 PM
r937's Avatar
r937 r937 is offline
SQL Consultant
Dev Shed God 43rd Plane (26000 - 26499 posts)
 
Join Date: Feb 2003
Location: Toronto Canada
Posts: 26,443 r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level) 
Time spent in forums: 3 Months 1 Week 2 Days 14 h 22 m 31 sec
Reputation Power: 4141
Quote:
Originally Posted by Goshinki
Not letting new comers to the forum post URLS is not very newbie friendly.
yeah, but smart newbies will find a way

remember, your average spammer isn't very smart at all
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book

Reply With Quote
  #4  
Old March 13th, 2012, 05:45 PM
E-Oreo's Avatar
E-Oreo E-Oreo is offline
Lost in code
Dev Shed God 7th Plane (8000 - 8499 posts)
 
Join Date: Dec 2004
Posts: 8,063 E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)  Folding Points: 945 Folding Title: Novice Folder
Time spent in forums: 2 Months 1 Day 6 h 49 m 31 sec
Reputation Power: 7104
I suggest finding a different tutorial, I glanced over the code at saw at least two serious and obvious security vulnerabilities in it. To be honest, it's not really worth debugging that one when there are much better tutorials available elsewhere. The fact that that tutorial shows up as the second result when you Google "PHP login tutorial" is sort of a tragic reflection on the average quality of PHP developers.

The first Google result has one of those same vulnerabilities in it too...

... and so does the 6th one.

OK, screw that, I will write you a tutorial.

This thread can be moved to the PHP forum.
__________________
PHP FAQ
How to program a basic, secure login system using PHP
Connect with me on LinkedIn


Quote:
Originally Posted by Spad
Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

Reply With Quote
  #5  
Old March 13th, 2012, 06:52 PM
Goshinki Goshinki is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2012
Posts: 3 Goshinki User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 59 m 32 sec
Reputation Power: 0
Quote:
Originally Posted by E-Oreo
I suggest finding a different tutorial, I glanced over the code at saw at least two serious and obvious security vulnerabilities in it. To be honest, it's not really worth debugging that one when there are much better tutorials available elsewhere. The fact that that tutorial shows up as the second result when you Google "PHP login tutorial" is sort of a tragic reflection on the average quality of PHP developers.

The first Google result has one of those same vulnerabilities in it too...

... and so does the 6th one.

OK, screw that, I will write you a tutorial.

This thread can be moved to the PHP forum.


That'd be awesome... it's totally needed to. To be honest I thought the guide wasn't the best possible solution to what I'm trying to do but I searched for a long time before even finding a decent, simple one.

Reply With Quote
  #6  
Old March 13th, 2012, 08:32 PM
E-Oreo's Avatar
E-Oreo E-Oreo is offline
Lost in code
Dev Shed God 7th Plane (8000 - 8499 posts)
 
Join Date: Dec 2004
Posts: 8,063 E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)  Folding Points: 945 Folding Title: Novice Folder
Time spent in forums: 2 Months 1 Day 6 h 49 m 31 sec
Reputation Power: 7104

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Registration DB... users can't log in. Pictures included.

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap