Exemplo n.º 1
0
                    } else {
                        if (strtolower($newLocation) == 'hr') {
                            $Numericallocation = 5;
                        } else {
                            if (strtolower($newLocation) == 'bossoffice') {
                                $Numericallocation = 6;
                            } else {
                                if (strtolower($newLocation) == 'lobby') {
                                    $Numericallocation = 7;
                                } else {
                                    if (strtolower($newLocation) == 'copyroom') {
                                        $Numericallocation = 8;
                                    } else {
                                        $Numericallocation = 9;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    $dbManager->move($Numericallocation);
    echo $newLocation;
}
if (isset($_POST["blah"])) {
    $dbManager = new DBManager();
    $playerID = $dbManager->setPlayer(1);
    echo $dbManager->getMinutes();
}
Exemplo n.º 2
0
<!DOCTYPE html>
<?php 
require_once '../controllers/dbmanager.php';
require_once '../models/room.php';
$dbManager = new DBManager();
$location = Room::IT;
// Get the tasks based off a location
// $locationTaskList = $dbManager->fetchTaskList($location);
// var_dump($locationTaskList);
// echo "</br>";
$playerID = $dbManager->setPlayer(2);
echo "Player ID: " . $playerID . "</br>";
$dbManager->move($location);
?>

<html>
    <head>
        <title>DB Test</title>
    </head>
    <body>

    </body>
</html>