MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 12th, 2000, 07:10 PM
Robert_J_Sherman
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I seem to be having a bit of a difficulty,
I am try to do a match of a users form entered password.

I've been trying this:
SELECT * FROM users WHERE password=PASSWORD('$theirpassword');

naturally the $theirpassword is the users
password.

MySQL isn't returning a match.. when I know the password is entered correctly...

any any any idea what/why?

------------------
SnR Graphics,
Low Cost Hosting and Web Development.

Reply With Quote
  #2  
Old July 12th, 2000, 07:54 PM
Robert_J_Sherman
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by Robert_J_Sherman:
I seem to be having a bit of a difficulty,
I am try to do a match of a users form entered password.

I've been trying this:
SELECT * FROM users WHERE password=PASSWORD('$theirpassword');

naturally the $theirpassword is the users
password.

MySQL isn't returning a match.. when I know the password is entered correctly...

any any any idea what/why?
[/quote]

I've solved my own problem, it appears that I just didn't set my password field (in the database) to the right length.. guess I just didn't realize that the field needed to be something like VARCHAR(50) in order for the comparrisons to work out..



------------------
SnR Graphics,
Low Cost Hosting and Web Development.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Matching PASSWORD() columns???


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway