Alright, so for some reason user exploretimes are not resetting each day, instead it's simply been accumulating over time, even when it's been over 24 hours. Is anyone else having this issue?
Excerpt from my "explorecentralview.php"
PHP Code:
public function index(){
$mysidia = Registry::get("mysidia");
$document = $this->document;
$document->setTitle("Exploring Central Forest");
$document->add(new Comment("<center>You have taken {$mysidia->user->exploretimes} of 10,000 steps.</center>", FALSE));
$today = date(d);
if ($mysidia->user->lastday != $today) {
$mysidia->db->update("users", array("exploretimes" => (0)), "username = '{$mysidia->user->username}'");
}
$mysidia->db->update("users", array("lastday" => $today), "username = '{$mysidia->user->username}'");
$mysidia->db->update("users", array("exploretimes" => ($mysidia->user->exploretimes + 1)), "username = '{$mysidia->user->username}'");
if ($mysidia->user->exploretimes <= 10000) {
$random = rand(1,100);