Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Syntactic Confectionery Delight
 
PerlMonks  

Re: users online script not accurate

by ickyb0d (Monk)
on Nov 07, 2005 at 14:22 UTC ( [id://506503]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to users online script not accurate

I haven't dealt with time stuff in SQL recently.I believe all of the time functions (in perl) give you an epoch number (seconds since January 1, 1970). So make sure that the comparison that you are using in your SQL table is comparable. If not you may need to format your epoch time to look like the one in your SQL table.

Also, I don't think you need to necessarily do a prepare/execute combo when just deleting something. If you wanted you could just use a $dbh->do(statement)

Hope this helps

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://506503]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.