BigShot 16 Report post Posted April 7, 2015 Hey, guys. I'm pretty much clueless when it comes to PHP. I can edit existing code and write mediocre and simple things, but everything I've learned so far is just from browsing through files every now and then. Well I'm attempting to add weekly exp gains to highscores for a project I'm working on. I'd assume I need to create some sort of database archive that it'd compare to, but I have no idea how to do that and if it's even the right way to go about this issue! If anyone here has any idea or can set me on the right path, I'd be very grateful. Thanks in advance! Quote Share this post Link to post Share on other sites
BigShot 16 Report post Posted April 7, 2015 Managed to do it on my own. I created a CRON script that copies over the database every week. Then I simply compare the exp differences to get the weekly exp gain. This thread can be closed! Quote Share this post Link to post Share on other sites
ITRA 0 Report post Posted July 11, 2016 You can use date function to determine which week is going on. There's also a lot of variables for current function. Your solution works, but it's not efficient. Quote Share this post Link to post Share on other sites