I have a page called profile.php?id=21 and I would like the path to be of my choosing from a text string stored in a database. So, for instance if I stored "my-page" in the database associated with this page I would like the full path to be "www.domainname.com/my-page/21" not "www.domainname.com/profile.php?id=21".
I am using a MySQL database. Any help would be appreciated.