Nico
05-02-2006, 08:31 PM
Hi,
Im building a site that will have profiles of some people, but im having some doubts about how to implement some things.
- I want to store the first and a last name for each person, i was thinking on having each on separate fields. That way i can list only the first or last name when needed. You think it's a good idea or it would be better to put them the 2 in one field?
- I'll also be using mod_rewrite to rewrite the URL's, using the first & last name to link to each profile (instead of a numeric id). I'll still use an ID, but just for internal use (like deleting records,etc).
How should i do this? Just make the ID a primary key, and first & last UNIQUE? Or should i make first & last name the primary key?
- How should i show the rewrite URL...
www.mysite.com/firstname_lastname
or
www.mysite.com/firstname lastname
?
- And of course, im going to put a search feature...any advantage on using Full text searching if im just going to search through a first & last name? Maybe it's just better to use %LIKE% ?
I would appreciate any suggestion!
Im building a site that will have profiles of some people, but im having some doubts about how to implement some things.
- I want to store the first and a last name for each person, i was thinking on having each on separate fields. That way i can list only the first or last name when needed. You think it's a good idea or it would be better to put them the 2 in one field?
- I'll also be using mod_rewrite to rewrite the URL's, using the first & last name to link to each profile (instead of a numeric id). I'll still use an ID, but just for internal use (like deleting records,etc).
How should i do this? Just make the ID a primary key, and first & last UNIQUE? Or should i make first & last name the primary key?
- How should i show the rewrite URL...
www.mysite.com/firstname_lastname
or
www.mysite.com/firstname lastname
?
- And of course, im going to put a search feature...any advantage on using Full text searching if im just going to search through a first & last name? Maybe it's just better to use %LIKE% ?
I would appreciate any suggestion!