does this call for a master and detail page?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

does this call for a master and detail page?

Post by malcolmboston »

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
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

no1?
i would really like to use this feature

can anyone help?
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

:(
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

What r u asking exactly? Please explain more, cause I don't think anyone understands you.

Or look at the source for phpBB2, that's what open source is for.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

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.
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

Yeah, here's a secret. Work on you code till your brain wants to blow out. Post on the forums. Take a nap, wake up and tada!

-Nay

ps: My method does not garuntee any replies. After all, it's open source ;)
Post Reply