Weekly Star Scale

Locked
User avatar
Moonlight Soldier
girl with bells
Joined: Thu Jul 03, 2003 1:45 pm
Status: Plotting
Location: Canada
Org Profile

Weekly Star Scale

Post by Moonlight Soldier » Sat Jan 08, 2005 1:01 pm

Is there a reason this hasn't been updated recently?

It hasn't been updated since Dec 26th 2004.

Cheers,

~Moonlight

User avatar
Moonlight Soldier
girl with bells
Joined: Thu Jul 03, 2003 1:45 pm
Status: Plotting
Location: Canada
Org Profile

Post by Moonlight Soldier » Sun Jan 09, 2005 2:34 pm

Am I going to get any sort of reply? :(

User avatar
derobert
Phantom of the .Org
Joined: Wed Oct 24, 2001 8:35 am
Location: Sterling, Virginia
Contact:
Org Profile

Post by derobert » Mon Jan 10, 2005 8:33 am

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

User avatar
badmartialarts
Bad Martial Artist
Joined: Sat Oct 25, 2003 5:31 am
Location: In ur Kitchen Stadium, eatin ur peppurz
Org Profile

Post by badmartialarts » Mon Jan 10, 2005 7:13 pm

It did the same thing last year, if I recall. It doesn't seem to like the year change.
Life's short.
eBayhard.

User avatar
Moonlight Soldier
girl with bells
Joined: Thu Jul 03, 2003 1:45 pm
Status: Plotting
Location: Canada
Org Profile

Post by Moonlight Soldier » Mon Jan 10, 2005 9:19 pm

Well at least it's back up and working now. Thank you.

User avatar
derobert
Phantom of the .Org
Joined: Wed Oct 24, 2001 8:35 am
Location: Sterling, Virginia
Contact:
Org Profile

Post by derobert » Tue Jan 11, 2005 8:04 pm

badmartialarts wrote:It did the same thing last year, if I recall. It doesn't seem to like the year change.
Thanks; I've forwarded that info on to phade just in case he didn't see it...

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
I think it does the same thing as

Code: Select all

	$time_last_week = time() - 604800; // == 7 days
	$week = date('W', $time_last_week);
	$year = date('Y', $time_last_week);
but I'm not sure.
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

User avatar
Gemberkoekje
Joined: Wed Jan 05, 2005 11:42 pm
Org Profile

Post by Gemberkoekje » Tue Jan 11, 2005 11:20 pm

What exactly is the code trying to do?
BakaNeko.nl!

Locked

Return to “Site Help & Feedback”