> how do i check that the current date is the end of month ?

In PHP?

$now = date('m/d/Y');
$parts = explode('/', $now);
list($month, $day, $year) = $parts;
$tomorrow = mktime($month, $day + 1, $year);

if ($month != date('m', $tomorrow)){
    echo "LAST DAY!<BR>\n";
}

Probably can be done in SQL as well.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to