I will try to give you a concret example:
$jour = mktime(0,0,0, date("m"), date("d"), date("Y"));
$sql = "SELECT * FROM user_select WHERE date='$jour' ORDER BY $ordered $type";
The field date is formatted as "date" (YYYY-MM-DD) and I need to extract the user(s) who has his birth at the today date and display it.
And the second selection should be:
$sql = "SELECT * FROM user_select WHERE date > '$jour' ORDER BY $ordered $type";
and with this selection the access to the site should be blocked for the user who is expired
PHP should handle the date
Thanks Cedric