Gossamer Forum
Home : Products : DBMan : Customization :

Re: Filter search results

Quote Reply
Re: Filter search results In reply to
You're going to have three dates in each record? And they're all going to be the date the record is added? I'm confused.

To sort search results by any field, you just have to set the "so" field. You can either set it in a form or in a link. Rather than give both of them to you right now, can you tell me which one you want?

Regarding your searching by a given month (or any partial date), all you have to do is change one line in sub query.

Delete the code in red that's below:

Code:

if ($in{$column} !~ /^\s*$/) { ($db_sort{$column} eq 'date') and (&date_to_unix($in{$column}) or return "Invalid date format: '$in{$column}'");
push(@search_fields, $i); $i++; next; }
Make sure you get the right set of lines. There are 5 lines in sub query that begin in much the same way. This is the third one.


JPD
http://www.jpdeni.com/dbman/
Subject Author Views Date
Thread Filter search results faithlezz 2132 Jun 25, 2000, 7:41 AM
Thread Re: Filter search results
Stealth 2033 Jun 25, 2000, 10:57 AM
Thread Re: Filter search results
aladdin88 2024 Jun 26, 2000, 10:31 PM
Thread Re: Filter search results
Stealth 2015 Jun 26, 2000, 10:39 PM
Thread Re: Filter search results
aladdin88 2026 Jun 27, 2000, 12:24 AM
Thread Re: Filter search results
JPDeni 2024 Jun 27, 2000, 12:42 AM
Thread Re: Filter search results
aladdin88 2033 Jun 27, 2000, 10:22 PM
Thread Re: Filter search results
JPDeni 1984 Jun 28, 2000, 12:07 AM
Thread Re: Filter search results
aladdin88 1983 Jun 28, 2000, 8:33 PM
Thread Re: Filter search results
JPDeni 1990 Jun 28, 2000, 11:57 PM
Thread Re: Filter search results
aladdin88 1967 Jun 29, 2000, 8:40 PM
Post Re: Filter search results
JPDeni 1962 Jun 30, 2000, 1:38 AM