How to get players scores for the current week
<p>I've been left some code to try and figure out, which is..</p>

<pre><code> public function scoreboard($ttime, $numb = 10) {    

    if ($ttime == "day") { $timesearch = $this-&gt;myTime - 86400; }   

    if ($ttime == "week") { $timesearch = $this-&gt;myTime - 604800; }

    if ($ttime == "month") { $timesearch = $this-&gt;myTime - 18144000; }

    if ($ttime == "hiscore") { $timesearch = $this-&gt;myTime - 1000000000; }

    //get top 10 ------------------   

    return @mysql_query("SELECT uid, name, score, FROM table WHERE scoredate&gt;$timesearch ORDER BY score DESC LIMIT $numb");   

  }
</code></pre>

<p>What I need is to get the players score for the current week, I.e the actual week in which the score was created (based on server date), but I think that code doesn't do that? it seems to take the current date and just go back 7 days?</p>
