So I'm build a site that has user profiles. what I want to do is grab from the database the users username and display it in the url, so something like this:
example.com/profile/derrick in stead of showing (example.com/profile.php?id=123)
I always want to do this with the photos that they upload as well. I want to grab the title of the photo and make it the url:
example.com/shots/my-photo-title-here in stead of showing (example.com/shots.php?id=13)
If anyone has a good tutorial out there, or script they wrote themselves I would be very happy to know about it. Thanks!