Hi,

Sunday, March 2, 2003, 3:39:37 PM, you wrote:
S> Greetings all.

S> I have used strtotime() function in the past, and done this:

if($time >>= strtotime('24 hours ago')) {
S> $new = "new!";
S> }

S> with it being in UNIX time stamp .. But now I have a different client where
S> the time stamp in mysql is formatted like:
S> 2002-08-29 10:53:09

S> what function would I use in this case, date() ? If so, how would I do the
S> same exact thing?

S> thanks.

S> warm regards,
S> Sebastian - [BBR] Gaming Clan
S> http://www.broadbandreports.com

you can do if(strtotime($mysq_timestamp) >= strtotime('24 hours ago')) {

strtotime can take a mysql timestamp directly I think

-- 
regards,
Tom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to