Geting Info after Login

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
moiseszaragoza
Forum Commoner
Posts: 87
Joined: Sun Oct 03, 2004 4:04 pm
Location: Ft lauderdale
Contact:

Geting Info after Login

Post by moiseszaragoza »

I'm Going to simulate a DB to show you what I need.

ID , UserNamr , Passord , Info1 , Info2,
1 , JoseMaria , abcdefg , fhreyr75gujgh, dtry,
2, MoeESpin , 123465, h68hth578686 , tutru


I Think You allready know that.

Well I have a Login wertr the User writes there Username and Password.

I kneed to get the Info1, and 2 For that person when they log in.

Thanks for all the help
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

select *

Post by phpScott »

why not just

Code: Select all

SELECT * FROM usersTable WHERE userNamr='$userName' AND PASSORD='$password'
if all the info is in the same table.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Consider MD5()ing your passwords for security's sake.

Mac
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

good point

Post by phpScott »

very good point mac.
I was just going with the easy example to give moiseszaragoza an idea of what to do.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Re: good point

Post by twigletmac »

phpScott wrote:very good point mac.
I was just going with the easy example to give moiseszaragoza an idea of what to do.
No worries, I just get twitchy when I see plain text passwords :)

Mac
Post Reply