@ScleppelOct 01.2005 — #If $adddate is already a unix timestamp you can do this: [code=php] if((mktime() - $adddate) <= 604800) echo 'new image stuff here.'; else echo 'too old to have the new image'; [/code] If it's not, try using strtotime (http://www.php.net/strtotime) to get a unix timestamp.