SyntaxFix
Write A Post
Hire A Developer
Questions
if(strtotime($row['database_date']) > strtotime('now')) echo $row['database_date']; else echo date("d-m-Y");
No need to check the hours because if they are on the same day it will show the same date either way...