ok, ive posted so many questions today that my heads turned to mush
i have a lot of members on my site and each member can view other peoples profile pages
now i know how to do it the normal way anyway (in a profile section) but i want it to be able to do it anyway in the site, so if a news item says posted by WebMaster (me) if they click on that link it will take them to a profile of me, and if another person has there name on the site, take them to there
obviously it can be done because teh PHP forums do it? how could i 'emulate' this?
pseudo-code would be fine
does this call for a master and detail page?
Moderator: General Moderators
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
The core statement in what you've written above, malcomboston, is:
"Everyone should be able to see a given profile from anywhere on the site"
I presume you're familiar with mySQL - just offer a link to a page (e.g. "profile.php") on every page.
"profile.php" checks if a profileID (or userID or some unique ID) has been supplied (I recommend GET, e.g.: "http://www.mysite.org/profile.php?userID=1514") . If one was supplied then pull the data from the DB and display it.
Not too difficult, is it?
P.S.: Give people time to respond - giving up after two hours is a bit "un-eager", if you ask me.
"Everyone should be able to see a given profile from anywhere on the site"
I presume you're familiar with mySQL - just offer a link to a page (e.g. "profile.php") on every page.
"profile.php" checks if a profileID (or userID or some unique ID) has been supplied (I recommend GET, e.g.: "http://www.mysite.org/profile.php?userID=1514") . If one was supplied then pull the data from the DB and display it.
Not too difficult, is it?
P.S.: Give people time to respond - giving up after two hours is a bit "un-eager", if you ask me.