Page 1 of 1

Geting Info after Login

Posted: Tue Oct 05, 2004 10:11 am
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

select *

Posted: Tue Oct 05, 2004 10:22 am
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.

Posted: Tue Oct 05, 2004 10:30 am
by twigletmac
Consider MD5()ing your passwords for security's sake.

Mac

good point

Posted: Tue Oct 05, 2004 10:31 am
by phpScott
very good point mac.
I was just going with the easy example to give moiseszaragoza an idea of what to do.

Re: good point

Posted: Wed Oct 06, 2004 3:27 am
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