Jump to content

Archived

This topic is now archived and is closed to further replies.

Millar

Using more than with WHERE

Recommended Posts

I have this piece of code to see if a user was active in past 15 mins.
[code]mysql_query ( "SELECT * FROM reg WHERE lastactive>='" . date ( "U" ) - 900 . "'" );[/code]

But this code doesn't work, how could I query using more than?

Share this post


Link to post
Share on other sites
Or you could use the MySQL NOW() function.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.