I'm trying to do a date difference. I have in my database dates of when info was added. I want to show that info for repairs so that I can put a change the td bg colour to yellow if more then 2 days then red if more then 4 days.
I know how to get the if elseif statement to work I'm just having a hard time figuring out how to do the date differ
my date is in the database like this
date("Y-m-d")
I tried strtodate and google to come out with something but can't figure it out
I know it's most likely something simple.
TIA