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:
Here is a completed one that I used:
Here is the completed source code to use: