Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Help with searching within range of days

by htmanning (Friar)
on Aug 07, 2012 at 22:06 UTC ( [id://986091]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    SELECT * FROM database WHERE (TO_DAYS(dateadded)-TO_DAYS(Now())>=-30) 
    + ORDER BY dateadded DESC, ID DESC
    
  2. or download this
    /search.pl?searchtextterms=&andor=AND&search=yes&state=(TO_DAYS(datead
    +ded)-TO_DAYS(Now())%3E=-30)&currentpage=2
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://986091]
Approved by chacham
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-19 17:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found