I hate to admit to this Stewart, but my MySQL skills are exceptionally deficient (only had it a few weeks!!!) the method you are using for storing dates looks fine to me, I'm not quite sure to what extent MySQL can performs logic statements with fields other than integers.
If it can't, then I suggest you contemplate storing the date as a time stamp (time in seconds since some date in the 1970's or thereabouts!!!) and do something like...
$expire= (MySQL code to grab expire tstamp from table)
$currenttime=mktime (1,00,00,date("m") ,date("d"),date("Y"));
then, for every article, place the following sort of code
if ($currenttime > $expire) {
echo "<img src='http://www.yoursite.com/images/new.gif' alt='new article!'>";
}
Can anyone with a bit more MySQL knowledge offer some assistance!!!
ucbones
😃