Hi,
Im trying to think of a way to write a piece of code that basiaclly does this.
If the time now is a new hour then...
If the time now is a new day then...
if the time is a new week then...
if the time now is a new month then...
once I have that I can create mysql tables at the right time to store data.
Thanks in advance!
If the time now is a new hour then...
Moderator: General Moderators
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
Store old times for comparison, then use strftime to get appropriate now values.
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
Re: If the time now is a new hour then...
er... this smells of bad design to me.eon201 wrote:once I have that I can create mysql tables at the right time to store data.
Why all the extra tables?