I want to compare the date the record was added to the database to
today's date, and get that result as a number.
$today = date("Y-m-d");
$row = mysql_fetch_array($sql_result);
$date_added = $row["date_added"];
$date_calc = ???
Here's where I am unable to solve the problem. I want
to look at $today and $date_added ($date_added pulled from
database, both in YYYY-MM-DD format) and get the result in a
number of days difference. So I can then do an if statement:
if ($date_calc < 7) {
echo "<font color=red><b>new</b></font>";
}
Thank you,
Mark