MySQL Help
 
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 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:
  #1  
Old November 1st, 1999, 11:49 AM
ErikMathy
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Hi!

I was wondering if anyone might know the proper mysql syntax for a problem I am hitting.

I am playing around with setting up user authentication for a site using mysql as the backend and PHP up front. I don't want to create 50-1000 new records in the user and db tables for various and sundry reasons. I'd rather have a table (fooClients) within the site specific database (fooBase) already built.

Within fooClients there is an ID and a Login (read: password) field. While it would be very easy to have the Login as a varchar (15) field I'd prefer to use the password encyption. That's where the snag hits.

Select * From fooClient Where Login = 'foo'
doesn't work, because it's not passing 'foo' to mysql in it's encrypted form.

Select * From fooClient Where Login = password('foo') doesn't fly either.

Any ideas?

Mucho thanks in advance!
- Erik

Reply With Quote
  #2  
Old November 1st, 1999, 01:06 PM
rod k
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Are you sure it was stored using the mysql password() encryption and not something else?

Reply With Quote
  #3  
Old November 1st, 1999, 03:27 PM
ErikMathy
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Hey hey!

Positive. I've done it both manually and via phpMyAdmin and made sure the password encryption is set on my test users.

Why?
- Erik

Reply With Quote
  #4  
Old November 2nd, 1999, 10:43 AM
rod k
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
OK, for some reason I thought you were using an existing table (not one you developed). Many people don't use mysql's password encryption but encode in the script using md5 for example.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Retrieving both encrypted & non-encrypted data?

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