title: URL Rewriting with MySQL database
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3647617/htaccess-url-rewriting-with-php">.htaccess url rewriting with php</a>  </p>
  </blockquote>
  
  
  
  <p>The homepage on my website has a number of users, listed. Each user has 'view profile' link that takes you to <code>www.mysite.com/user-profiles/profile.php?id=32</code>, the <code>id</code> being relevant to the user. </p>
  
  <p>Is it possible to use URL Rewriting to find the name and surnamce of the user for that ID in the database and rewrite it too something like?</p>
  
  <p><code>www.mysite.com/user-profiles/john-a-doe</code></p>
  
  <p>Any help would be greatly appreciated...</p>