Jump to content

Recommended Posts

So if I make a signup page that inserts the user's username and pass to mysql, and a login page that checks with the mysql to see if the pass is right.. and if its right log them in.. but im confused about the login bit, i mean how do i know to display all their personal details from mysql, like their profile page etc..what do i need to make for the place they go after the login bit?

Any adive what i need to learn, thanks

 

I'm not quite sure what your asking.

 

But to display all of their results, you just need to place the user name/id into a session variable, and then use it in a mysql query to get all of the details about that user.

 

and just use

 

header("Location: http://www.example.com/thepagetogotoafterloginl.php");

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.