Ok, this is what I'm getting now:
include("db_connect.php");
$todayMinus60=date("Y-m-d",mktime(0,0,0,date(m),date(d)-10,date(Y)));
$result = @mysql_query("SELECT * FROM orders WHERE date_rec !='' AND date_rec <= $todayMinus60") or die ("<p>$fontString $sql<P>".mysql_errno().": ".mysql_error());
while($row = mysql_fetch_array($result)) {
echo("<font color=#cccccc size=1 face=arial>$row[date_rec]</font><br>");
}
This code is bringing up:
Dec 18, 2002
Dec 17, 2002
Jan 08, 2003
Jan 06, 2003
Jan 06, 2003
Jan 06, 2003
Jan 08, 2003
Jan 06, 2003
Dec 18, 2002
Jan 08, 2003
Jan 08, 2003
Jan 08, 2003
Jan 08, 2003
Jan 08, 2003
Jan 08, 2003
this isn't every entry in the database, and it's also not the ones greater than 10 days in the past. I just used 10 because I don't have anything in the database yet that's over 60 days. I can always change the 10 to 60...lol
Anyway, what's going on here?