PDA

View Full Version : Picking up user ID at login


Creative Insanity
05-07-2006, 09:35 PM
Ok headache here.

I am wanting to pick up a user ID so that I can display a profile page for that user according to their user ID.. I have had this working before on other apps but for some reason it is not working now.

So what have I done,
I setup a varable
$member=$row_RSlogin['ID'];
And if the login is successful it is ment to display the profile page on the user ID.
$redirectLoginSuccess = "../artist/profile.php?ID=$member";
I know it is not the profile page as when I change ?ID=(whatever) it does display the correct data, but the login page is not putting out the correct ID number as it is always the same number (4) which is not the first or last record.
Weird huh?

davidj
05-09-2006, 08:39 AM
when you log in dont you use your userID

if you do you can just use the session it assigned