$currentTime = date("h:i a");
Im storing time in my db like this...
$timeEnd = date("h:i a");
which outputs "07:15 pm".
I need to compare $expireTime to $currentTime.
$sql2 = "UPDATE id SET expired = '1' WHERE timeEnd <= '".$currentTime."' AND date = '".$currentDate."'";
This code works except it's not considering am/pm... what am I doing wrong?
EDIT: So it seems one answer would be to insert a 24 hour format into the db, which makes sense... is there anyway to make this work though? unix timestamp? strototime in the query?