how do I make a virtual directory with a database result

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
KOPFC
Forum Newbie
Posts: 1
Joined: Thu Jul 20, 2006 11:41 pm

how do I make a virtual directory with a database result

Post by KOPFC »

The database I am building will have people and information about them stored in it. I want to be able to give visitors links such as

http://www.mysite.com/person_one
http://www.mysite.com/person_four

etc...

and have it pull up the correct persons page. I don't want to have to make the directories manually each time. I want this process automated as there will be well over 150 people, and there will be 10 to 20 additions/deletions a month.

Any idea's on the best way to do that?

KOPFC
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Use mod_rewrite or your web server's equivalent.
Post Reply