Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: sth fetch only grabbing back first result

by Ieronim (Friar)
on Aug 10, 2006 at 19:43 UTC ( [id://566694]=note: print w/replies, xml ) Need Help??


in reply to Re^2: sth fetch only grabbing back first result
in thread sth fetch only grabbing back first result

Maybe, this happens because NOW() and CURDATE() return date in different formats?

Try

my $data = qq(SELECT search, engine, time FROM searches WHERE DATE_SUB +(NOW(),INTERVAL 7 DAY) <= time);
I cannot test it now, but i think that it will produce the wanted output too.

     s;;Just-me-not-h-Ni-m-P-Ni-lm-I-ar-O-Ni;;tr?IerONim-?HAcker ?d;print

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-26 08:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found