$timestamp
= time();
$dateYear
=
date
('Y',
$timestamp
);
$dateMonth
=
date
('n',
$timestamp
);
$dateDay
=
date
('j',
$timestamp
);
$eventDate
= '2007-03-01';
$eventDateArr
=
explode
('-',
$eventDate
);
$eventYear
=
intval
(
$eventDateArr
[0]);
$eventMonth
=
intval
(
$eventDateArr
[1]);
$eventDay
=
intval
(
$eventDateArr
[2]);
if
(
$dateYear
==
$eventYear
) {
if
(
$dateMonth
==
$eventMonth
) {
if
(
$dateDay
==
$eventDay
) {
}
elseif
(
$dateDay
>
$eventDay
) {
}
else
{
}
}
else
{
}
}
else
{
}