Class variable is null when I try to access it in PHP
问题 Alright, this is my main code: require "checkpassword.php"; require "mysqllogininfo.php"; # Validate password if (!validatePassword($_GET["password"])) { return; } # Get variables $uuid = $_GET["uuid"]; if (preg_match('/^\d+$/',$_GET["rank"]) == false) { die("Rank must be integer"); } $rank = $_GET["rank"]; # Validate UUID if ($uuid == null) { die ("Supply uuid"); } # Validate rank if ($rank == null) { die ("Supply rank"); } else if ($rank < 0 || $rank > 6) { die ("Invalid rank"); } # Load