User profile pages

Hi, I’m new to php and SQL and need help. I have searched the Internet for a few days now and haven’t been able to find an answer that helps me!

I have a simple registration and log in set up using php and and SQL database. My problem is how to I make it so when someone logs in they log into their own unique profile page - at the moment everyone logs into the same page!

I have read that sessions can be used here but don’t really understand fully if this is the right route to go down! Any help setting me in the right track with this is appreciated.

Thanks all.

You will need to provide the details on how you log people in - can you track their user ID? If so, it is a simple matter of pulling from the DB.

When they log in, set a session variable, then send the person to their profile page. Use the session to retrieve the data from the DB table.

Sponsor our Newsletter | Privacy Policy | Terms of Service