阅读背景:

如何将当前日期与MySQL db中存储的日期进行比较?

来源:互联网 

I'm coding a uploader that saves into the db the date when a file is uploaded using CURDATE(). I want to compare the current date with the one stored into the db in order to change the color of the icon related to the file depending on how long has this feel been uploaded. For instance, if less than a week, the icon will be green, if more than a week, it will be yellow, if more than two weeks, red. How can I do it? Thanks.I'm coding a uploader that saves into the db th




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: