I have a variable called expireson I need a code that would go like this: if expireson is today or any day after the expireson show "this ad has expired" Can anyone help me with this?
if (strtotime($expireson) <= time()) { echo "This is your expired ad message!"; } PHP: Depending on what is the date format you are using, you can adjust the first if statement argument/function.