Re: [PHP] Require some help about the date comparison

2002-07-17 Thread Jason Wong
On Wednesday 17 July 2002 14:55, Manisha wrote: I am writing one program - I want to display some text on web. This text should appear for limited period e.g from 20th July 12pm till 25th July 3pm. After 25th July 3pm the text should disappear from screen. I tried to look for date

Re: [PHP] Require some help about the date comparison

2002-07-17 Thread Andrey Hristov
I think that it is better to use unixtimestamps and if you save them to a RDBMS then save according to GMT. When retrieving use timezone to convert to your local time - ex define('MY_TIMEZONE',-2); list($time) = mysql_fetch_array(mysql_query('select tstamp from table where user='.$user_id.';'));

RE: [PHP] Require some help about the date comparison

2002-07-17 Thread Manisha
Thanks to all who responded me. Actually I got confused after seeing so many commands but finally got it correct from u guys. Thanks once again. Manisha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php