How to build a about.me like website?
say a user register a user name as jason, then his website will be xxx.com/jason how to establish this function? need your help!! thank you!
It's often done with URL redirection (e.g. via ModRewrite in Apache) so that "jason" becomes a GET variable that is used to query the DB via the default script to populate its data from the DB.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Yep, NogDog is exactly right.
would be converted to (via rewrite) something like:
Which in turn would be referenced in a table that relates the name to an id like:
thus from this point on you'd refer to userid 2, and lookup your data that way. Only thing to be careful about is you have to make sure each username is 100% unique.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)