Reply to Timestamp Question.

Your name:

Reply:


Posted by Tony Peardon on 02/28/06 01:11

Hi all,

How do I timestamp a table? I have a table that contains references to the
files of a website. I want to track when the file is created, modified, and
published, and I also want to track if and when the file should be
refreshed, and so, I need to know how to make a timestamp.

create table files
(
---- cut
created date default ??thedate??, -- how do I timestamp?
modified date default ??thedate?? on update ??thedate??, --can I reset
the modified date automatically?
interval date default ??10 days??, -- can I do this? how?
refresh date default ??thedate+interval?? --can I add two dates??
published date on update ??resetrefresh?? -- can the refresh date be
reset automatically when the file is published?
);

Am I even barking up the right tree, or is this sort of stuff better handled
with php?

Please help.

Thanks.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация