On a recent school project, we was making a website that had a social network element. After the user created his account and loged in, he could see his profile. This was useless because no one else could see it. I needed a way so that ever member had a unique URL. So I created a template that only information from the database to create the webpage. It is very simple to query a MySQL database using the URL.
First part is the URL:
https://www.yourwebpage.com/yourPHPfile?id=yourVariable
Here is a completed one that I used:
http://pausrecords.com/members/memberSelect.php?id=group
Here is the completed source code to use:
memberSelect