Weekly Star Scale
- Moonlight Soldier
- girl with bells
- Joined: Thu Jul 03, 2003 1:45 pm
- Status: Plotting
- Location: Canada
Weekly Star Scale
Is there a reason this hasn't been updated recently?
It hasn't been updated since Dec 26th 2004.
Cheers,
~Moonlight
It hasn't been updated since Dec 26th 2004.
Cheers,
~Moonlight
- Moonlight Soldier
- girl with bells
- Joined: Thu Jul 03, 2003 1:45 pm
- Status: Plotting
- Location: Canada
- derobert
- Phantom of the .Org
- Joined: Wed Oct 24, 2001 8:35 am
- Location: Sterling, Virginia
- Contact:
Script didn't update the table for some reason. I think Phade is looking into it.
Key 55EA59FE; fingerprint = E501 CEE3 E030 2D48 D449 274C FB3F 88C2 55EA 59FE
A mighty order of ages is born anew. http://twitter.com/derobert
A mighty order of ages is born anew. http://twitter.com/derobert
- badmartialarts
- Bad Martial Artist
- Joined: Sat Oct 25, 2003 5:31 am
- Location: In ur Kitchen Stadium, eatin ur peppurz
It did the same thing last year, if I recall. It doesn't seem to like the year change.
Life's short.
eBayhard.
eBayhard.
- Moonlight Soldier
- girl with bells
- Joined: Thu Jul 03, 2003 1:45 pm
- Status: Plotting
- Location: Canada
- derobert
- Phantom of the .Org
- Joined: Wed Oct 24, 2001 8:35 am
- Location: Sterling, Virginia
- Contact:
Thanks; I've forwarded that info on to phade just in case he didn't see it...badmartialarts wrote:It did the same thing last year, if I recall. It doesn't seem to like the year change.
It's quite possible something is wrong with the year rollover; it's pretty weird code:
Code: Select all
// Get the number of this week...
$query = "select week(now(),3) as theweek";
$result = mysql_query($query, $dbconn);
$row = mysql_fetch_object($result);
$thisweek = $row->theweek;
// Get default year and week values...
if ($thisweek-1<1) {
$query = "select week('" . (year("Y") -1) . "-12-31',3) as theweek";
$result = mysql_query($query, $dbconn);
$row = mysql_fetch_object($result);
$week = $row->theweek;
$year = date("Y")-1;
} // if
else {
$week = $thisweek-1;
$year = date("Y");
} // else
Code: Select all
$time_last_week = time() - 604800; // == 7 days
$week = date('W', $time_last_week);
$year = date('Y', $time_last_week);
Key 55EA59FE; fingerprint = E501 CEE3 E030 2D48 D449 274C FB3F 88C2 55EA 59FE
A mighty order of ages is born anew. http://twitter.com/derobert
A mighty order of ages is born anew. http://twitter.com/derobert
- Gemberkoekje
- Joined: Wed Jan 05, 2005 11:42 pm