URL Rewrite query database?

Posted by Liam on Stack Overflow See other posts from Stack Overflow or by Liam
Published on 2012-10-19T10:45:12Z Indexed on 2012/10/19 11:01 UTC
Read the original article Hit count: 290

Filed under:
|
|
|

Im trying to understand how URL rewriting works. I have the following link...

mysite.com/profile.php?id=23

I want to rewrite the above url with the Users first and last name...

mysite.com/directory/liam-gallagher

From what Ive read however you specify the rule for what the url should be output as, But how do i query my table to get each users name?

Sorry if this is hard to understand, ive confused myself!

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql