$u_lstupd = strtotime($mysql_timestamp); $u_week = mktime(0, 0, 0, date("m"), date("d")-7, date("Y")); if ($u_lstupd > $u_week){ $string = "" }