Gossamer Forum
Home : Products : DBMan : Customization :

Re: Ago search

Quote Reply
Re: Ago search In reply to
Oh. I think I may have it. Let's see. Smile

When a person adds a record, he indicates the age range of people he would like to meet.

Then someone else comes to the site and does a search. This someone else is 18 years old and only wants to find people who are interested in meeting someone his age. Right?

The previous search allows the person to find someone he's interested in. What you're doing now will assure that the people he finds are also interested in him. Smile

Okay. Let's say the field on your search form is called Age_range.

In sub query, you would add (just after the stuff for the other age thing)

Code:
if ($in{'Age_range'}) {
$in{'agefrom-gt'} = $in{'Age_range'} + 1;
$in{'ageto-lt'} = $in{'Age_range'} - 1;
}

Make sure that you don't have a field in your .cfg file called "Age_range."

(I think this is correct. I get confused sometimes. Smile )


------------------
JPD






Subject Author Views Date
Thread Ago search johnsonny 3068 Apr 28, 2000, 1:07 AM
Post Re: Ago search
JPDeni 2935 Apr 28, 2000, 1:15 AM
Post Re: Ago search
johnsonny 2924 Apr 28, 2000, 2:51 AM
Post Re: Ago search
johnsonny 2966 Apr 28, 2000, 11:34 AM
Post Re: Ago search
JPDeni 2938 Apr 29, 2000, 11:19 PM
Post Re: Ago search
johnsonny 2940 May 2, 2000, 2:29 PM
Post Re: Ago search
JPDeni 2934 May 2, 2000, 2:50 PM
Post Re: Ago search
johnsonny 2932 May 2, 2000, 3:20 PM
Post Re: Ago search
johnsonny 2944 May 4, 2000, 4:07 PM
Post Re: Ago search
Stealth 2949 May 4, 2000, 4:46 PM
Post Re: Ago search
johnsonny 2941 May 4, 2000, 9:18 PM
Post Re: Ago search
JPDeni 2945 May 5, 2000, 9:13 AM
Post Re: Ago search
JPDeni 2939 May 5, 2000, 11:28 AM