i am trying to disaply the booking days of clients which will be booking online apointments:
IF the DAY, MONTH and YEAR are EQUAL or GREATER THEN todayday todaymonth and this year. the user will get the option to delete his booking,
ELSE
dispaly that booking has exipred
below is the code im using:
if ((($bookingday >= $day) && ($bookingmonth >= $monthnumber) && ($bookingyear >= $year)))
{
DISAPLY: cancel booking button
}
else
{
DISAPLY: Booking expired
}
All is wokring fine apart that if the bookingyear is for example 2010, and the month and day are SMALLER THEN the actual todayday and todaymonth
i get the
BOOKING EXPIRED message, when infact its not. since the year is bigger then the actual year.
do i have an error in the if statment, which is ignoring to check the YEAR ...
thanks
IF the DAY, MONTH and YEAR are EQUAL or GREATER THEN todayday todaymonth and this year. the user will get the option to delete his booking,
ELSE
dispaly that booking has exipred
below is the code im using:
if ((($bookingday >= $day) && ($bookingmonth >= $monthnumber) && ($bookingyear >= $year)))
{
DISAPLY: cancel booking button
}
else
{
DISAPLY: Booking expired
}
All is wokring fine apart that if the bookingyear is for example 2010, and the month and day are SMALLER THEN the actual todayday and todaymonth
i get the
BOOKING EXPIRED message, when infact its not. since the year is bigger then the actual year.
do i have an error in the if statment, which is ignoring to check the YEAR ...
thanks