Cetanu Posted June 23, 2009 Share Posted June 23, 2009 If I wanted members on a site to have a profile page, it would just be a page that pulls their info from my database, right? How would I go about doing this (what kind of script would I need?) ? Quote Link to comment https://forums.phpfreaks.com/topic/163379-profile-page/ Share on other sites More sharing options...
JonnoTheDev Posted June 23, 2009 Share Posted June 23, 2009 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! Quote Link to comment https://forums.phpfreaks.com/topic/163379-profile-page/#findComment-862058 Share on other sites More sharing options...
Cetanu Posted June 23, 2009 Author Share Posted June 23, 2009 Dunno what half of that means. I got the gist, though. Quote Link to comment https://forums.phpfreaks.com/topic/163379-profile-page/#findComment-862062 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.