richclever
IS-IT--Management
I have a table on my mysql database which hold an expiry date in mysql's date format. I need to compare it to the current server date to check if a username has expired.
I have set date is php to the same format as the mysql date using
$today = date("Y-m-d");
I am trying to check the system date using
if ($expirydate < $today) {
do something
}
but it just won't work.
What is the proper way to validate?
Thanks in advance.
Richard
I have set date is php to the same format as the mysql date using
$today = date("Y-m-d");
I am trying to check the system date using
if ($expirydate < $today) {
do something
}
but it just won't work.
What is the proper way to validate?
Thanks in advance.
Richard