Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Listings Manager (Realty Manager & Auto Manager):
Sort by Age Group

 

 


gregwun
New User

Jul 14, 2009, 7:04 PM

Post #1 of 2 (3195 views)
Shortcut
Sort by Age Group Can't Post

I have a listings site for models and actors and want to display search results by age group, for example 10-12 year olds, 13-17 year olds, and 18-25 year olds...... I have birthdays for each listing. Is there a way to code the search link so that it checks the age and displays only the people in that age group? That way I don't have to manually move people from age group to age group as they get older.


Donna
Staff / Moderator


Jul 15, 2009, 1:00 PM

Post #2 of 2 (3190 views)
Shortcut
Re: [gregwun] Sort by Age Group [In reply to] Can't Post

Hi there,

Depending on how you have the birthdays stored, you could do a min/max search, although you would need to update the search from time to time to keep it accurate. Still, this should be easier than updating each individual listing.

The birthdays would need to be stored in this format:

YYYYMMDD

ie, 20090715

This would then allow you to do a min/max search like this:

http://yoursite.com/path/to/search.cgi?search=1&lfieldX_min=20000101&lfieldX_max=20050101

This would display listings from people born between January 1st 2000 to January 1st 2005.

Would something like that work for you?

Donna

--
support@interactivetools.com