I'm used to coding in ASP, but transitioning over to PHP. I'm trying to compare two dates. I only want entries in the database that have not expired. I've written the following code but it does not work.
$today = date('m/d/Y');
"select date_format(expiredate,'%m/%d/%Y) as expiredate where expiredate>=$today";
Nothing comes out when I do this. Am I trying to compare them incorrectly. I've tried placing $today in single quotes.
If anyone can direct me it would be greatly appreciated.
Meekos