htmanning has asked for the wisdom of the Perl Monks concerning the following question:
We're showing 20 results at a time, so I embed the query into a "NEXT" link but this code doesn't work in a string:SELECT * FROM database WHERE (TO_DAYS(dateadded)-TO_DAYS(Now())>=-30) + ORDER BY dateadded DESC, ID DESC
I'm not sure how to get around this. The less than sign doesn't translate into the string. Any help would be appreciated. UPDATE: Never mind. I figured it out. Duh./search.pl?searchtextterms=&andor=AND&search=yes&state=(TO_DAYS(datead +ded)-TO_DAYS(Now())%3E=-30)¤tpage=2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with searching within range of days
by davido (Cardinal) on Aug 08, 2012 at 01:29 UTC | |
|
Re: Help with searching within range of days
by frozenwithjoy (Priest) on Aug 07, 2012 at 23:49 UTC | |
|
Re: Help with searching within range of days
by locked_user sundialsvc4 (Abbot) on Aug 08, 2012 at 03:12 UTC | |
|
Re: Help with searching within range of days
by chacham (Prior) on Aug 07, 2012 at 23:58 UTC |