Jump to content

Profile Page


Cetanu

Recommended Posts

Can be done with mysql / php.

 

1. When a user clicks on their profile pass a parameter in the url to identify the users database record i.e the primary key: profile.php?id=123

2. Validate the parameter to make sure it is the correct data type and format (not manipulated)

3. Connect to the database and select the record using the url parameter

SELECT * FROM user WHERE id='123'

4. Print the data to the screen

 

Simple!

Link to comment
https://forums.phpfreaks.com/topic/163379-profile-page/#findComment-862058
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.